python-pycares: new package
authorJames Hilliard <james.hilliard1@gmail.com>
Mon, 12 Nov 2018 08:09:15 +0000 (16:09 +0800)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 13 Nov 2018 09:33:53 +0000 (10:33 +0100)
Python interface for c-ares.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
DEVELOPERS
package/Config.in
package/python-pycares/Config.in [new file with mode: 0644]
package/python-pycares/python-pycares.hash [new file with mode: 0644]
package/python-pycares/python-pycares.mk [new file with mode: 0644]

index 53467da489f8e2f38bb19b2eba74d1e2635f6b1e..88dcbc11a2d95001e4dad2de62f21bc9eac0884f 100644 (file)
@@ -986,6 +986,7 @@ F:  configs/pine64_sopine_defconfig
 N:     James Hilliard <james.hilliard1@gmail.com>
 F:     package/python-async-timeout/
 F:     package/python-multidict/
+F:     package/python-pycares/
 F:     package/python-yarl/
 
 N:     James Knight <james.knight@rockwellcollins.com>
index b60e7700ada47d49debeadda63628561ecd9ac80..4d7ed6512fde81ba33467eae38847c383dfe3dda 100644 (file)
@@ -949,6 +949,7 @@ menu "External python modules"
        source "package/python-pyasn-modules/Config.in"
        source "package/python-pyasn1/Config.in"
        source "package/python-pyasn1-modules/Config.in"
+       source "package/python-pycares/Config.in"
        source "package/python-pycli/Config.in"
        source "package/python-pycparser/Config.in"
        source "package/python-pycrypto/Config.in"
diff --git a/package/python-pycares/Config.in b/package/python-pycares/Config.in
new file mode 100644 (file)
index 0000000..4144952
--- /dev/null
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_PYCARES
+       bool "python-pycares"
+       help
+         Python interface for c-ares.
+
+         http://github.com/saghul/pycares
diff --git a/package/python-pycares/python-pycares.hash b/package/python-pycares/python-pycares.hash
new file mode 100644 (file)
index 0000000..2e80a97
--- /dev/null
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/pycares/json
+md5    74893b2b380fbb45329a406ae4b1ae89  pycares-2.3.0.tar.gz
+sha256 36f4c03df57c41a87eb3d642201684eb5a8bc194f4bafaa9f60ee6dc0aef8e40  pycares-2.3.0.tar.gz
+# Locally computed sha256 checksums
+sha256 427bb3a5372024a26e2c290b24382512bcc7ca123431c4dd178dd613beea7eee  LICENSE
diff --git a/package/python-pycares/python-pycares.mk b/package/python-pycares/python-pycares.mk
new file mode 100644 (file)
index 0000000..961c87e
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-pycares
+#
+################################################################################
+
+PYTHON_PYCARES_VERSION = 2.3.0
+PYTHON_PYCARES_SOURCE = pycares-$(PYTHON_PYCARES_VERSION).tar.gz
+PYTHON_PYCARES_SITE = https://files.pythonhosted.org/packages/89/5c/3a7e1a52d6abb52b9ca1a56d2df699936e89d8b98f75cfd60d03363e7c10
+PYTHON_PYCARES_SETUP_TYPE = setuptools
+PYTHON_PYCARES_LICENSE = MIT
+PYTHON_PYCARES_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))