From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH 3/6] gnu: Add python-orderedmultidict. Date: Thu, 3 Nov 2016 11:56:01 +0100 Message-ID: <20161103105604.2937-4-dannym@scratchpost.org> References: <20161103105604.2937-1-dannym@scratchpost.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2Fh2-0003pk-Rn for guix-devel@gnu.org; Thu, 03 Nov 2016 06:56:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2Fh1-0007bz-QB for guix-devel@gnu.org; Thu, 03 Nov 2016 06:56:24 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:39059) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c2Fh1-0007bY-Jv for guix-devel@gnu.org; Thu, 03 Nov 2016 06:56:23 -0400 In-Reply-To: <20161103105604.2937-1-dannym@scratchpost.org> 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-orderedmultidict, python2-orderedmultidict): New variables. --- gnu/packages/python.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 86436fd..aee97cb 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -3857,6 +3857,43 @@ simple and Pythonic domain language.") `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) +(define-public python-orderedmultidict + (package + (name "python-orderedmultidict") + (version "0.7.10") + (source + (origin + (method url-fetch) + (uri (pypi-uri "orderedmultidict" version)) + (sha256 + (base32 + "1gvqk0jd432wsn88kq4svad68xz3r012jfpnhh9in7bqrkyxidky")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-tests + (lambda _ + (and (zero? (system* "touch" "tests/__init__.py")))))))) + (propagated-inputs + `(("python-six" ,python-six))) + (native-inputs + `(("python-pycodestyle" ,python-pycodestyle))) + (home-page "https://github.com/gruns/orderedmultidict") + (synopsis "Python Ordered Multivalue Dictionary - omdict.") + (description "This package contains Ordered Multivalue Dictionary - omdict +- for Python.") + (license license:unlicense) + (properties `((python2-variant . ,(delay python2-orderedmultidict)))))) + +(define-public python2-orderedmultidict + (let ((base (package-with-python2 (strip-python2-variant + python-orderedmultidict)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) + (define-public python-sqlalchemy-utils (package (name "python-sqlalchemy-utils")