package/python-dnspython: new package
authorLouis Aussedat <aussedat.louis@gmail.com>
Sun, 10 Nov 2019 22:26:53 +0000 (23:26 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 11 Nov 2019 15:32:13 +0000 (16:32 +0100)
Signed-off-by: Louis Aussedat <aussedat.louis@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/python-dnspython/Config.in [new file with mode: 0644]
package/python-dnspython/python-dnspython.hash [new file with mode: 0644]
package/python-dnspython/python-dnspython.mk [new file with mode: 0644]

index 342df993aab399e773823322f668857b02212689..b006ba699974734ab2c918e7b097f298849a44a7 100644 (file)
@@ -1393,6 +1393,7 @@ F:        package/ti-sgx-um/
 N:     Louis Aussedat <aussedat.louis@gmail.com>
 F:     board/friendlyarm/nanopi-neo-plus2/
 F:     configs/friendlyarm_nanopi_neo_plus2_defconfig
+F:     package/python-dnspython/
 F:     package/python-tqdm/
 
 N:     Louis-Paul Cordier <lpdev@cordier.org>
index a9742ba9539e17244da3b4ebd9b277a2be543ff1..ae396256f4a965aac8f64d582d27203f3ca54145 100644 (file)
@@ -891,6 +891,7 @@ menu "External python modules"
        source "package/python-dicttoxml/Config.in"
        source "package/python-django/Config.in"
        source "package/python-django-enumfields/Config.in"
+       source "package/python-dnspython/Config.in"
        source "package/python-docker/Config.in"
        source "package/python-docker-pycreds/Config.in"
        source "package/python-dockerpty/Config.in"
diff --git a/package/python-dnspython/Config.in b/package/python-dnspython/Config.in
new file mode 100644 (file)
index 0000000..99fd6a9
--- /dev/null
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_DNSPYTHON
+       bool "python-dnspython"
+       help
+         A powerful DNS toolkit for python.
+
+         http://www.dnspython.org
diff --git a/package/python-dnspython/python-dnspython.hash b/package/python-dnspython/python-dnspython.hash
new file mode 100644 (file)
index 0000000..af09d51
--- /dev/null
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/dnspython/json
+md5    bc9ca3b3a82164667d5730ec6d5248a2  dnspython-1.16.0.zip
+sha256 36c5e8e38d4369a08b6780b7f27d790a292b2b08eea01607865bf0936c558e01  dnspython-1.16.0.zip
+# Locally computed sha256 checksums
+sha256  c3ea3ff5654b329c19d3bc5f7481af623c3dded4a6145585499f843ad3d741cd  LICENSE
diff --git a/package/python-dnspython/python-dnspython.mk b/package/python-dnspython/python-dnspython.mk
new file mode 100644 (file)
index 0000000..18d98ef
--- /dev/null
@@ -0,0 +1,20 @@
+################################################################################
+#
+# python-dnspython
+#
+################################################################################
+
+PYTHON_DNSPYTHON_VERSION = 1.16.0
+PYTHON_DNSPYTHON_SOURCE = dnspython-$(PYTHON_DNSPYTHON_VERSION).zip
+PYTHON_DNSPYTHON_SITE = https://files.pythonhosted.org/packages/ec/c5/14bcd63cb6d06092a004793399ec395405edf97c2301dfdc146dfbd5beed
+PYTHON_DNSPYTHON_LICENSE = ISC
+PYTHON_DNSPYTHON_LICENSE_FILES = LICENSE
+PYTHON_DNSPYTHON_SETUP_TYPE = setuptools
+
+define PYTHON_DNSPYTHON_EXTRACT_CMDS
+       $(UNZIP) -d $(@D) $(PYTHON_DNSPYTHON_DL_DIR)/$(PYTHON_DNSPYTHON_SOURCE)
+       mv $(@D)/dnspython-$(PYTHON_DNSPYTHON_VERSION)/* $(@D)
+       $(RM) -r $(@D)/dnspython-$(PYTHON_DNSPYTHON_VERSION)
+endef
+
+$(eval $(python-package))