From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Roelandt Subject: [PATCH 1/3] gnu: Add python-netaddr. Date: Tue, 8 Sep 2015 00:35:33 +0200 Message-ID: <1441665335-31855-2-git-send-email-tipecaml@gmail.com> References: <1441665335-31855-1-git-send-email-tipecaml@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZ57o-0004YC-9L for guix-devel@gnu.org; Mon, 07 Sep 2015 18:42:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZ57l-0002OS-3Y for guix-devel@gnu.org; Mon, 07 Sep 2015 18:42:56 -0400 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:38900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZ57k-0002OD-TS for guix-devel@gnu.org; Mon, 07 Sep 2015 18:42:53 -0400 Received: by wiclk2 with SMTP id lk2so96117110wic.1 for ; Mon, 07 Sep 2015 15:42:52 -0700 (PDT) In-Reply-To: <1441665335-31855-1-git-send-email-tipecaml@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * gnu/packages/python.scm (python-netaddr, python2-netaddr): New variables. --- gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index f9ad951..0231bce 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -4739,3 +4739,31 @@ reading and writing MessagePack data.") (define-public python2-msgpack (package-with-python2 python-msgpack)) + +(define-public python-netaddr + (package + (name "python-netaddr") + (version "0.7.18") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/source/n/netaddr/netaddr-" + version + ".tar.gz")) + (sha256 + (base32 + "06dxjlbcicq7q3vqy8agq11ra01kvvd47j4mk6dmghjsyzyckxd1")))) + (build-system python-build-system) + (arguments `(#:tests? #f)) ;; No tests. + (inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/drkjam/netaddr/") + (synopsis + "Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses") + (description + "A Python library for representing and manipulating network addresses.") + (license bsd-3))) + +(define-public python2-netaddr + (package-with-python2 python-netaddr)) -- 2.1.4