[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 11/11] gnu: Add python-ipaddress.
From: |
David Craven |
Subject: |
[PATCH 11/11] gnu: Add python-ipaddress. |
Date: |
Mon, 22 Aug 2016 15:20:18 +0200 |
* gnu/packages/python.scm (python-ipaddress): New variable.
(python2-ipaddress): New variable.
---
gnu/packages/python.scm | 41 ++++++++++++++++++++++-------------------
1 file changed, 22 insertions(+), 19 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 40d10e2..8d83b16 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -5872,30 +5872,33 @@ implementations of ASN.1-based codecs and protocols.")
(define-public python2-pyasn1-modules
(package-with-python2 python-pyasn1-modules))
-(define-public python2-ipaddress
+(define-public python-ipaddress
(package
- (name "python2-ipaddress")
- (version "1.0.14")
- (source
- (origin
- (method url-fetch)
- (uri (string-append "https://pypi.python.org/packages/source/i/"
- "ipaddress/ipaddress-" version ".tar.gz"))
- (sha256
- (base32
- "0givid4963n57nsjibms2fc347zmcs188q1hw9al1dkc9kj4nvr2"))))
+ (name "python-ipaddress")
+ (version "1.0.16")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "ipaddress" version))
+ (sha256
+ (base32
+ "1c3imabdrw8nfksgjjflzg7h4ynjckqacb188rf541m74arq4cas"))))
(build-system python-build-system)
- (arguments
- `(#:tests? #f ; no tests
- #:python ,python-2))
(home-page "https://github.com/phihag/ipaddress")
(synopsis "IP address manipulation library")
(description
- "This package provides a fast, lightweight IPv4/IPv6 manipulation library
-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
-module to older versions of Python.")
- (license license:psfl)))
+ "This package provides a fast, lightweight IPv4/IPv6 manipulation library
+ 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
+ module to older versions of Python.")
+ (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
(package
--
2.9.0
- [PATCH 05/11] gnu: Add python-pymongo., (continued)
- [PATCH 05/11] gnu: Add python-pymongo., David Craven, 2016/08/22
- [PATCH 06/11] gnu: Add python-sh., David Craven, 2016/08/22
- [PATCH 03/11] gnu: Add python-binaryornot., David Craven, 2016/08/22
- [PATCH 04/11] gnu: Add python-nltk., David Craven, 2016/08/22
- [PATCH 08/11] gnu: Add python-publicsuffix., David Craven, 2016/08/22
- [PATCH 07/11] gnu: Add python-schematics., David Craven, 2016/08/22
- [PATCH 10/11] gnu: Add python-url., David Craven, 2016/08/22
- [PATCH 09/11] gnu: Add python-publicsuffix2., David Craven, 2016/08/22
- [PATCH 02/11] gnu: python: Import guix licenses with #:prefix license:., David Craven, 2016/08/22
- Re: [PATCH 02/11] gnu: python: Import guix licenses with #:prefix license:., David Craven, 2016/08/26
- [PATCH 11/11] gnu: Add python-ipaddress.,
David Craven <=
[PATCH 08/12] gnu: python: Add python-schematics., David Craven, 2016/08/05
[PATCH 03/12] gnu: python: Import guix licenses with #:prefix license:., David Craven, 2016/08/05
[PATCH 06/12] gnu: python: Add python-pymongo., David Craven, 2016/08/05
[PATCH 05/12] gnu: python: Add python-nltk., David Craven, 2016/08/05
[PATCH 07/12] gnu: python: Add python-sh., David Craven, 2016/08/05
[PATCH 10/12] gnu: python: Add python-publicsuffix2., David Craven, 2016/08/05
[PATCH 09/12] gnu: python: Add python-publicsuffix., David Craven, 2016/08/05
[PATCH 11/12] gnu: python: Add python-url., David Craven, 2016/08/05