mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-14 07:00:32 -05:00
gnu: Add python2-ipaddr.
* gnu/packages/python.scm: (python2-ipaddr): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
1a024de45e
commit
4a23818659
1 changed files with 29 additions and 0 deletions
|
@ -5788,6 +5788,35 @@ (define-public python2-ipaddress
|
||||||
module to older versions of Python.")
|
module to older versions of Python.")
|
||||||
(license psfl)))
|
(license psfl)))
|
||||||
|
|
||||||
|
(define-public python2-ipaddr
|
||||||
|
(package
|
||||||
|
(name "python2-ipaddr")
|
||||||
|
(version "2.1.11")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (pypi-uri "ipaddr" version))
|
||||||
|
(sha256
|
||||||
|
(base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v"))))
|
||||||
|
(build-system python-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:python ,python-2 ;version 2 only
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(replace 'check
|
||||||
|
(lambda* _
|
||||||
|
(zero? (system* "python" "ipaddr_test.py")))))))
|
||||||
|
(home-page "https://github.com/google/ipaddr-py")
|
||||||
|
(synopsis "IP address manipulation library")
|
||||||
|
(description
|
||||||
|
"Ipaddr is a Python@tie{}2 library for creating and manupilating IPv4 and
|
||||||
|
IPv6 addresses and networks.
|
||||||
|
|
||||||
|
For new implementations you may prefer to use the standard module
|
||||||
|
@code{ipaddress}, which was introduced in Python 3.3 and backported to older
|
||||||
|
versions of Python.")
|
||||||
|
(license asl2.0)))
|
||||||
|
|
||||||
(define-public python-idna
|
(define-public python-idna
|
||||||
(package
|
(package
|
||||||
(name "python-idna")
|
(name "python-idna")
|
||||||
|
|
Loading…
Reference in a new issue