aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Mauro Condarelli <mc5686@mclink.it>2016-02-02 01:44:47 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-02 20:36:19 +0100
commitffde67a0de3c7849758c450019e6a8b23c98ea68 (patch)
tree490a3412779d58d4912d4dce1e05e3ba25c6e1bf
parent56526bbfae64fee625f560297a979f8345887a00 (diff)
downloadbuildroot-ffde67a0de3c7849758c450019e6a8b23c98ea68.tar.gz
buildroot-ffde67a0de3c7849758c450019e6a8b23c98ea68.tar.bz2
python-netaddr: new package
Signed-off-by: Mauro Condarelli <mc5686@mclink.it> Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com> [Thomas: - remove excessive empty new line at the end of Config.in - specify BSD-3c as the license, since it's the variant being used, and it's more specific than just BSD.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/Config.in1
-rw-r--r--package/python-netaddr/Config.in6
-rw-r--r--package/python-netaddr/python-netaddr.hash3
-rw-r--r--package/python-netaddr/python-netaddr.mk14
4 files changed, 24 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 8ee5ad4a44..f2b690199c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -665,6 +665,7 @@ menu "External python modules"
source "package/python-meld3/Config.in"
source "package/python-mistune/Config.in"
source "package/python-msgpack/Config.in"
+ source "package/python-netaddr/Config.in"
source "package/python-netifaces/Config.in"
source "package/python-networkmanager/Config.in"
source "package/python-nfc/Config.in"
diff --git a/package/python-netaddr/Config.in b/package/python-netaddr/Config.in
new file mode 100644
index 0000000000..534d136f06
--- /dev/null
+++ b/package/python-netaddr/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_NETADDR
+ bool "python-netaddr"
+ help
+ A network address manipulation library for Python.
+
+ https://pypi.python.org/pypi/netaddr
diff --git a/package/python-netaddr/python-netaddr.hash b/package/python-netaddr/python-netaddr.hash
new file mode 100644
index 0000000000..5fcdda4539
--- /dev/null
+++ b/package/python-netaddr/python-netaddr.hash
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=c65bb34f8bedfbbca0b316c490cd13a0, sha256 locally computed.
+md5 c65bb34f8bedfbbca0b316c490cd13a0 netaddr-0.7.18.tar.gz
+sha256 a1f5c9fcf75ac2579b9995c843dade33009543c04f218ff7c007b3c81695bd19 netaddr-0.7.18.tar.gz
diff --git a/package/python-netaddr/python-netaddr.mk b/package/python-netaddr/python-netaddr.mk
new file mode 100644
index 0000000000..c68b24fca1
--- /dev/null
+++ b/package/python-netaddr/python-netaddr.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-netaddr
+#
+################################################################################
+
+PYTHON_NETADDR_VERSION = 0.7.18
+PYTHON_NETADDR_SOURCE = netaddr-$(PYTHON_NETADDR_VERSION).tar.gz
+PYTHON_NETADDR_SITE = http://pypi.python.org/packages/source/n/netaddr
+PYTHON_NETADDR_LICENSE = BSD-3c
+PYTHON_NETADDR_LICENSE_FILES = LICENSE
+PYTHON_NETADDR_SETUP_TYPE = distutils
+
+$(eval $(python-package))