package: add python-requests
authorPeter Korsgaard <peter@korsgaard.com>
Mon, 17 Nov 2014 16:54:28 +0000 (17:54 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 17 Nov 2014 16:54:28 +0000 (17:54 +0100)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/Config.in
package/python-requests/Config.in [new file with mode: 0644]
package/python-requests/python-requests.hash [new file with mode: 0644]
package/python-requests/python-requests.mk [new file with mode: 0644]

index 1d132af4630df5abfbb38d49645170699f76cd66..d59876f2b06aa4928db9207fa9526192645bb588 100644 (file)
@@ -519,6 +519,7 @@ menu "external python modules"
        source "package/python-pysnmp-mibs/Config.in"
        source "package/python-pyusb/Config.in"
        source "package/python-pyzmq/Config.in"
+       source "package/python-requests/Config.in"
        source "package/python-rtslib-fb/Config.in"
        source "package/python-serial/Config.in"
        source "package/python-setuptools/Config.in"
diff --git a/package/python-requests/Config.in b/package/python-requests/Config.in
new file mode 100644 (file)
index 0000000..3367cf0
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_REQUESTS
+       bool "python-requests"
+       help
+         Requests is an Apache2 Licensed HTTP library, written in
+         Python, for human beings.
+
+         http://www.python-requests.org/
diff --git a/package/python-requests/python-requests.hash b/package/python-requests/python-requests.hash
new file mode 100644 (file)
index 0000000..d187dcd
--- /dev/null
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=02214b3a179e445545de4b7a98d3dd17, sha256 locally computed
+md5    02214b3a179e445545de4b7a98d3dd17  requests-2.4.3.tar.gz
+sha256 53c68313c5c6149b1a899234c000296e60a8900682accf73d6f0c6d608afc6b1  requests-2.4.3.tar.gz
diff --git a/package/python-requests/python-requests.mk b/package/python-requests/python-requests.mk
new file mode 100644 (file)
index 0000000..5c12f1b
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-requests
+#
+################################################################################
+
+PYTHON_REQUESTS_VERSION = 2.4.3
+PYTHON_REQUESTS_SOURCE = requests-$(PYTHON_REQUESTS_VERSION).tar.gz
+PYTHON_REQUESTS_SITE = http://pypi.python.org/packages/source/r/requests
+PYTHON_REQUESTS_SETUP_TYPE = setuptools
+PYTHON_REQUESTS_LICENSE = Apache-2.0
+PYTHON_REQUESTS_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))