unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Craven <david@craven.ch>
To: guix-devel@gnu.org
Subject: [PATCH 11/11] gnu: Add python-ipaddress.
Date: Mon, 22 Aug 2016 15:20:18 +0200	[thread overview]
Message-ID: <20160822132018.19828-11-david@craven.ch> (raw)
In-Reply-To: <20160822132018.19828-1-david@craven.ch>

* 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

  parent reply	other threads:[~2016-08-22 13:20 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-05 18:37 [PATCH 02/12] import: utils: Symbols from 'license->symbol' have a license: prefix David Craven
2016-08-05 18:37 ` [PATCH 03/12] gnu: python: Import guix licenses with #:prefix license: David Craven
2016-08-05 18:37 ` [PATCH 04/12] gnu: python: Add python-binaryornot David Craven
2016-08-08 20:37   ` Leo Famulari
2016-08-22 12:05     ` David Craven
2016-08-22 12:14       ` David Craven
2016-08-22 13:20         ` [PATCH 01/11] import: utils: Symbols from 'license->symbol' have a license: prefix David Craven
2016-08-22 13:20           ` [PATCH 02/11] gnu: python: Import guix licenses with #:prefix license: David Craven
2016-08-26 20:55             ` David Craven
2016-08-22 13:20           ` [PATCH 03/11] gnu: Add python-binaryornot David Craven
2016-08-22 13:20           ` [PATCH 04/11] gnu: Add python-nltk David Craven
2016-08-27  8:39             ` Danny Milosavljevic
2016-10-24 21:15             ` Leo Famulari
2016-08-22 13:20           ` [PATCH 05/11] gnu: Add python-pymongo David Craven
2016-08-22 13:20           ` [PATCH 06/11] gnu: Add python-sh David Craven
2016-08-27  8:42             ` Danny Milosavljevic
2016-08-28 12:28               ` David Craven
2016-08-29 10:31                 ` Guix with U-Boot Danny Milosavljevic
2016-08-29 11:25                   ` David Craven
2016-08-29 14:12                     ` David Craven
2016-08-29 14:19                       ` Danny Milosavljevic
2016-08-29 16:51                         ` David Craven
2016-08-29 17:20                           ` Danny Milosavljevic
2016-08-29 17:52                             ` Danny Milosavljevic
2016-08-29 18:10                               ` Danny Milosavljevic
2016-08-29 17:38                           ` Danny Milosavljevic
2016-08-29 18:16                           ` Danny Milosavljevic
2016-08-29 18:20                             ` David Craven
2016-08-29 18:56                               ` David Craven
2016-08-29 19:04                                 ` Danny Milosavljevic
2016-08-29 18:57                               ` How does install-grub work? Danny Milosavljevic
2016-08-29 20:29                                 ` David Craven
2016-08-29 20:50                                   ` Danny Milosavljevic
2016-08-29 20:54                                     ` David Craven
2016-08-29 21:19                                       ` David Craven
2016-08-29 21:57                                         ` Danny Milosavljevic
2016-08-29 22:00                                           ` David Craven
2016-08-29 22:14                                             ` Danny Milosavljevic
2016-08-30 15:33                                               ` David Craven
2016-08-29 21:45                                       ` Danny Milosavljevic
2016-08-29 22:04                                         ` Danny Milosavljevic
2016-08-22 13:20           ` [PATCH 07/11] gnu: Add python-schematics David Craven
2016-08-22 13:20           ` [PATCH 08/11] gnu: Add python-publicsuffix David Craven
2016-08-22 13:20           ` [PATCH 09/11] gnu: Add python-publicsuffix2 David Craven
2016-08-22 13:20           ` [PATCH 10/11] gnu: Add python-url David Craven
2016-08-22 13:20           ` David Craven [this message]
2016-08-05 18:37 ` [PATCH 05/12] gnu: python: Add python-nltk David Craven
2016-08-05 18:37 ` [PATCH 06/12] gnu: python: Add python-pymongo David Craven
2016-08-08 20:36   ` Leo Famulari
2016-08-08 20:39     ` Leo Famulari
2016-08-05 18:37 ` [PATCH 07/12] gnu: python: Add python-sh David Craven
2016-08-05 18:37 ` [PATCH 08/12] gnu: python: Add python-schematics David Craven
2016-08-05 18:37 ` [PATCH 09/12] gnu: python: Add python-publicsuffix David Craven
2016-08-05 18:37 ` [PATCH 10/12] gnu: python: Add python-publicsuffix2 David Craven
2016-08-05 18:37 ` [PATCH 11/12] gnu: python: Add python-url David Craven
2016-08-05 18:37 ` [PATCH 12/12] gnu: python: Add python-ipaddress David Craven
2016-08-05 18:50   ` Leo Famulari
2016-08-06 12:52     ` David Craven
2016-08-06 15:57       ` Danny Milosavljevic
2016-08-07  0:20       ` Leo Famulari
2016-08-27  6:43 ` [PATCH 02/12] import: utils: Symbols from 'license->symbol' have a license: prefix Ricardo Wurmus
2016-08-27  8:31   ` David Craven
2016-08-30 19:07     ` Eric Bavier
2016-09-16  5:03       ` Eric Bavier
2016-09-16  7:29         ` David Craven
2016-09-16 15:40           ` Eric Bavier
2016-09-16 15:47             ` David Craven
2016-09-16 17:02               ` Eric Bavier
2016-09-19 13:06                 ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160822132018.19828-11-david@craven.ch \
    --to=david@craven.ch \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).