[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/6] gnu: Add python-orderedmultidict.
From: |
Marius Bakke |
Subject: |
Re: [PATCH 2/6] gnu: Add python-orderedmultidict. |
Date: |
Sat, 05 Nov 2016 15:42:15 +0000 |
User-agent: |
Notmuch/0.23.1 (https://notmuchmail.org) Emacs/25.1.1 (x86_64-unknown-linux-gnu) |
Danny Milosavljevic <address@hidden> writes:
> * 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
^^^
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")
signature.asc
Description: PGP signature