From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH 2/6] gnu: Add python-orderedmultidict. Date: Sat, 05 Nov 2016 15:42:15 +0000 Message-ID: <8737j66ii0.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> References: <20161105112706.12089-1-dannym@scratchpost.org> <20161105112706.12089-3-dannym@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c336r-0001Vc-8v for guix-devel@gnu.org; Sat, 05 Nov 2016 11:42:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c336n-00060u-W5 for guix-devel@gnu.org; Sat, 05 Nov 2016 11:42:21 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:59562) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c336n-00060g-Rd for guix-devel@gnu.org; Sat, 05 Nov 2016 11:42:17 -0400 In-Reply-To: <20161105112706.12089-3-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: Danny Milosavljevic , guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Danny Milosavljevic writes: > * gnu/packages/python.scm (python-orderedmultidict, python2-orderedmultid= ict): > 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.p= ython.org/dev/peps/pep-0008/ P > `(("python2-setuptools" ,python2-setuptools) > ,@(package-native-inputs base)))))) >=20=20 > +(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 f= or the > +same key. An ordered multivalue dictionary is a multivalue ^^^ Use two spaces between sentences in the description. Or run `guix lint` ;) Otherwise LGTM. > +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") --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJYHf3XAAoJEKKgbfKjOlT6ul0IALCbmcHAaQL8SKF/sAnuesT+ NJ7PPhif3RTVBe4gCMFjGFkYw7IbvmvGYQ8zHrS3cfQV/FgVK+q6424zXhnnoneC 2sxg2794f8+OrNz/PmIPVwk+8h7mFxjMYJUbGMmWxUDOv5Tvdp+yCK4A8kN9DUyj FsL0DLXJumBwMrp2Gl2SGNhNb6keZLtT8Qb1FEPbq032O0iolTna8glxj6v0AVaB r5mtxMCp5JKysCIoh8s5ZUjdtZwC0uU7qBlDw1vRjcxHF/oVbd3UXej6dqaMwucY txthfXo76gZFOZOUmqt1Bw461zLcubNyxabQLImKTraHucyM7G0/PDubZT1NdKk= =2Bb3 -----END PGP SIGNATURE----- --=-=-=--