diff options
author | David Craven <david@craven.ch> | 2016-08-05 19:28:14 +0200 |
---|---|---|
committer | David Craven <david@craven.ch> | 2016-08-28 14:04:52 +0200 |
commit | 691cd90dc0db879dbd36a50868ee64fd92ac5690 (patch) | |
tree | 8d17bc2f2ad1e1c89eb9b5a73ad51acd93174729 /gnu/packages | |
parent | a9ac982a2b4bef711ed7a53221d377251fa6fdc6 (diff) | |
download | patches-691cd90dc0db879dbd36a50868ee64fd92ac5690.tar patches-691cd90dc0db879dbd36a50868ee64fd92ac5690.tar.gz |
gnu: Add python-pymongo.
* gnu/packages/python.scm (python-pymongo): New variable.
(python2-pymongo): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/python.scm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 0ce25bf5bc..c461e77a3b 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10050,3 +10050,29 @@ reasoning, wrappers for natural language processing libraries.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-pymongo + (package + (name "python-pymongo") + (version "3.3.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "pymongo" version)) + (sha256 + (base32 + "07mra6w86wjqy4lx5fvimidjhhfzd562gfjn8grsnbv2q8pk0i9x")))) + (build-system python-build-system) + (inputs + `(("python-certifi" ,python-certifi))) + (home-page "http://github.com/mongodb/mongo-python-driver") + (synopsis "Python driver for MongoDB") + (description "Python driver for MongoDB.") + (license license:asl2.0) + (properties `((python2-variant . ,(delay python2-pymongo)))))) + +(define-public python2-pymongo + (let ((base (package-with-python2 (strip-python2-variant python-pymongo)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) |