From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: [PATCH 05/11] gnu: Add python-pymongo. Date: Mon, 22 Aug 2016 15:20:12 +0200 Message-ID: <20160822132018.19828-5-david@craven.ch> References: <20160822132018.19828-1-david@craven.ch> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbp9b-0007wU-V3 for guix-devel@gnu.org; Mon, 22 Aug 2016 09:20:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbp9Z-00057g-Vf for guix-devel@gnu.org; Mon, 22 Aug 2016 09:20:38 -0400 Received: from so254-10.mailgun.net ([198.61.254.10]:48789) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbp9Y-00055B-On for guix-devel@gnu.org; Mon, 22 Aug 2016 09:20:37 -0400 In-Reply-To: <20160822132018.19828-1-david@craven.ch> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/python.scm (python-pymongo): New variable. (python2-pymongo): New variable. --- gnu/packages/python.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index c1eaf12..a703be3 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10036,3 +10036,29 @@ binary or text.") (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)))))) -- 2.9.0