aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/databases.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2018-11-20 23:12:23 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2019-05-09 00:22:38 -0400
commit063edf928a3ea0e9c423707926f30502ab56fe67 (patch)
tree7e8c6396b0c6737da08153d5c175fd25bec53795 /gnu/packages/databases.scm
parentda6026792bae663cd7aea04dee12e16130c91fe5 (diff)
downloadguix-063edf928a3ea0e9c423707926f30502ab56fe67.tar
guix-063edf928a3ea0e9c423707926f30502ab56fe67.tar.gz
gnu: Add python-pylibmc.
* gnu/packages/databases.scm (python-pylibmc, python2-pylibmc): New variables.
Diffstat (limited to 'gnu/packages/databases.scm')
-rw-r--r--gnu/packages/databases.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index cd37939055..892a6e082d 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -370,6 +370,45 @@ the API, and provides features such as:
@end itemize")
(license license:bsd-3)))
+(define-public python-pylibmc
+ (package
+ (name "python-pylibmc")
+ (version "1.6.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pylibmc" version))
+ (sha256
+ (base32
+ "1n6nvvhl0g52gpzzwdj1my6049xljkfwyxxygnwda9smrbj7pyay"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'start-memcached-daemon
+ ;; The test suite requires a memcached server.
+ (lambda _
+ (invoke "memcached" "-d"))))))
+ (native-inputs
+ `(("memcached" ,memcached)
+ ("python-nose" ,python-nose)))
+ (inputs
+ `(("libmemcached" ,libmemcached)
+ ("zlib" ,zlib)
+ ("cyrus-sasl" ,cyrus-sasl)))
+ (home-page
+ "http://sendapatch.se/projects/pylibmc/")
+ (synopsis
+ "Python client for memcached")
+ (description
+ "@code{pylibmc} is a client in Python for memcached. It is a wrapper
+around TangentOrg’s libmemcached library, and can be used as a drop-in
+replacement for the code@{python-memcached} library.")
+ (license license:bsd-3)))
+
+(define-public python2-pylibmc
+ (package-with-python2 python-pylibmc))
+
(define-public mongodb
(package
(name "mongodb")