From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH 2/6] gnu: Add python-orderedmultidict. Date: Sat, 5 Nov 2016 12:27:02 +0100 Message-ID: <20161105112706.12089-3-dannym@scratchpost.org> References: <20161105112706.12089-1-dannym@scratchpost.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2z83-0001v4-7o for guix-devel@gnu.org; Sat, 05 Nov 2016 07:27:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2z81-0006DU-6h for guix-devel@gnu.org; Sat, 05 Nov 2016 07:27:19 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:39668) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c2z81-0006Ch-0F for guix-devel@gnu.org; Sat, 05 Nov 2016 07:27:17 -0400 In-Reply-To: <20161105112706.12089-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 | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index cb314e2..49c09fc 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -3856,6 +3856,48 @@ some of the style conventions in @url{http://www.python.org/dev/peps/pep-0008/ P `(("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 _ + ;;The packages uses nosetest for running the tests. + ;;Adding this initfile allows to run the test suite + ;;without requiring nosetest. + (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 a library for ordered multivalue dictionaries. +A multivalue dictionary is a dictionary that can store multiple values for the +same key. An ordered multivalue dictionary is a multivalue +dictionary that retains the order of insertions and deletions.") + (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")