package/python-ifaddr: new package
authorGrzegorz Blach <grzegorz@blach.pl>
Fri, 5 Jul 2019 11:57:11 +0000 (11:57 +0000)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 3 Aug 2019 22:22:37 +0000 (00:22 +0200)
Enumerates all IP addresses on all network adapters of the system.

https://github.com/pydron/ifaddr

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
[Thomas: add license file.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/python-ifaddr/Config.in [new file with mode: 0644]
package/python-ifaddr/python-ifaddr.hash [new file with mode: 0644]
package/python-ifaddr/python-ifaddr.mk [new file with mode: 0644]

index 44e3ae02af97b9b54e86066182267a99c51230c0..8a83f748d13b8897af5820deaa8d10413f1bbee0 100644 (file)
@@ -970,6 +970,7 @@ F:  package/f2fs-tools/
 F:     package/pigpio/
 F:     package/python-aioblescan/
 F:     package/python-falcon/
+F:     package/python-ifaddr/
 F:     package/python-mimeparse/
 F:     package/python-pigpio/
 F:     package/python-pyjwt/
index 851809d80cb232736cbf5883fdfb8fb52cd8930e..f84effff01a8b31f8aa2ba92b42fd5db7705eaf9 100644 (file)
@@ -911,6 +911,7 @@ menu "External python modules"
        source "package/python-ibmiotf/Config.in"
        source "package/python-id3/Config.in"
        source "package/python-idna/Config.in"
+       source "package/python-ifaddr/Config.in"
        source "package/python-incremental/Config.in"
        source "package/python-inflection/Config.in"
        source "package/python-influxdb/Config.in"
diff --git a/package/python-ifaddr/Config.in b/package/python-ifaddr/Config.in
new file mode 100644 (file)
index 0000000..64e9a3a
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_IFADDR
+       bool "python-ifaddr"
+       help
+         Enumerates all IP addresses on all network adapters of the
+         system.
+
+         https://github.com/pydron/ifaddr
diff --git a/package/python-ifaddr/python-ifaddr.hash b/package/python-ifaddr/python-ifaddr.hash
new file mode 100644 (file)
index 0000000..18df40a
--- /dev/null
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/ifaddr/json
+md5    cc1b7f0a587ef38491f07e50bf91d82e  ifaddr-0.1.6.tar.gz
+sha256 c19c64882a7ad51a394451dabcbbed72e98b5625ec1e79789924d5ea3e3ecb93  ifaddr-0.1.6.tar.gz
+# Locally calculated
+sha256 926c6fdac9ede91ae54c67066597466b04f9b4f956a24f9c77931e7765607b2c  setup.py
diff --git a/package/python-ifaddr/python-ifaddr.mk b/package/python-ifaddr/python-ifaddr.mk
new file mode 100644 (file)
index 0000000..23c4ee3
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-ifaddr
+#
+################################################################################
+
+PYTHON_IFADDR_VERSION = 0.1.6
+PYTHON_IFADDR_SOURCE = ifaddr-$(PYTHON_IFADDR_VERSION).tar.gz
+PYTHON_IFADDR_SITE = https://files.pythonhosted.org/packages/9f/54/d92bda685093ebc70e2057abfa83ef1b3fb0ae2b6357262a3e19dfe96bb8
+PYTHON_IFADDR_SETUP_TYPE = setuptools
+PYTHON_IFADDR_LICENSE = MIT
+PYTHON_IFADDR_LICENSE_FILES = setup.py
+
+$(eval $(python-package))