3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: python-ipaddress: Update to 1.0.16.

* gnu/packages/python.scm (python-ipaddress): New variable.
(python2-ipaddress): Use package-with-python2.
This commit is contained in:
David Craven 2016-08-05 19:35:34 +02:00
parent 81f1515d5a
commit 520af15742
No known key found for this signature in database
GPG key ID: C5E051C79C0BECDB

View file

@ -5876,22 +5876,17 @@ implementations of ASN.1-based codecs and protocols.")
(define-public python2-pyasn1-modules (define-public python2-pyasn1-modules
(package-with-python2 python-pyasn1-modules)) (package-with-python2 python-pyasn1-modules))
(define-public python2-ipaddress (define-public python-ipaddress
(package (package
(name "python2-ipaddress") (name "python-ipaddress")
(version "1.0.14") (version "1.0.16")
(source (source (origin
(origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://pypi.python.org/packages/source/i/" (uri (pypi-uri "ipaddress" version))
"ipaddress/ipaddress-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"0givid4963n57nsjibms2fc347zmcs188q1hw9al1dkc9kj4nvr2")))) "1c3imabdrw8nfksgjjflzg7h4ynjckqacb188rf541m74arq4cas"))))
(build-system python-build-system) (build-system python-build-system)
(arguments
`(#:tests? #f ; no tests
#:python ,python-2))
(home-page "https://github.com/phihag/ipaddress") (home-page "https://github.com/phihag/ipaddress")
(synopsis "IP address manipulation library") (synopsis "IP address manipulation library")
(description (description
@ -5899,7 +5894,15 @@ implementations of ASN.1-based codecs and protocols.")
in Python. This library is used to create, poke at, and manipulate IPv4 and in Python. This library is used to create, poke at, and manipulate IPv4 and
IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress
module to older versions of Python.") module to older versions of Python.")
(license license:psfl))) (license license:psfl)
(properties `((python2-variant . ,(delay python2-ipaddress))))))
(define-public python2-ipaddress
(let ((base (package-with-python2 (strip-python2-variant python-ipaddress))))
(package (inherit base)
(native-inputs
`(("python2-setuptools" ,python2-setuptools)
,@(package-native-inputs base))))))
(define-public python2-ipaddr (define-public python2-ipaddr
(package (package