summaryrefslogtreecommitdiffstats
path: root/package/python-simplegeneric
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2017-04-27 14:33:33 -0700
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-05-04 22:09:27 +0200
commit4c5688cfc690d79a9854ce9b0f5c2b9d62ecffed (patch)
tree0c5cfdd7b86a078f26396f778432f3e4cb70f687 /package/python-simplegeneric
parente816c8243fa6d7a72d5a2dbc01464071d8d68c48 (diff)
downloadbuildroot-4c5688cfc690d79a9854ce9b0f5c2b9d62ecffed.tar.gz
buildroot-4c5688cfc690d79a9854ce9b0f5c2b9d62ecffed.zip
package/python-simplegeneric: New package
Add 'simplegeneric'[1] package to Buildroot. Needed by IPython. [1] https://pypi.python.org/pypi/simplegeneric Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> [Thomas: add entry in DEVELOPERS file, fix license.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/python-simplegeneric')
-rw-r--r--package/python-simplegeneric/Config.in6
-rw-r--r--package/python-simplegeneric/python-simplegeneric.hash3
-rw-r--r--package/python-simplegeneric/python-simplegeneric.mk19
3 files changed, 28 insertions, 0 deletions
diff --git a/package/python-simplegeneric/Config.in b/package/python-simplegeneric/Config.in
new file mode 100644
index 0000000000..b5ebfecbb7
--- /dev/null
+++ b/package/python-simplegeneric/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_SIMPLEGENERIC
+ bool "python-simplegeneric"
+ help
+ A configuration system for Python applications.
+
+ https://pypi.python.org/pypi/simplegeneric
diff --git a/package/python-simplegeneric/python-simplegeneric.hash b/package/python-simplegeneric/python-simplegeneric.hash
new file mode 100644
index 0000000000..24f652c8e7
--- /dev/null
+++ b/package/python-simplegeneric/python-simplegeneric.hash
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi/simplegeneric, sha256 locally computed
+md5 f9c1fab00fd981be588fc32759f474e3 simplegeneric-0.8.1.zip
+sha256 dc972e06094b9af5b855b3df4a646395e43d1c9d0d39ed345b7393560d0b9173 simplegeneric-0.8.1.zip
diff --git a/package/python-simplegeneric/python-simplegeneric.mk b/package/python-simplegeneric/python-simplegeneric.mk
new file mode 100644
index 0000000000..556a478ee1
--- /dev/null
+++ b/package/python-simplegeneric/python-simplegeneric.mk
@@ -0,0 +1,19 @@
+################################################################################
+#
+# python-simplegeneric
+#
+################################################################################
+
+PYTHON_SIMPLEGENERIC_VERSION = 0.8.1
+PYTHON_SIMPLEGENERIC_SOURCE = simplegeneric-$(PYTHON_SIMPLEGENERIC_VERSION).zip
+PYTHON_SIMPLEGENERIC_SITE = https://pypi.python.org/packages/3d/57/4d9c9e3ae9a255cd4e1106bb57e24056d3d0709fc01b2e3e345898e49d5b
+PYTHON_SIMPLEGENERIC_LICENSE = ZPL-2.1
+PYTHON_SIMPLEGENERIC_SETUP_TYPE = distutils
+
+define PYTHON_SIMPLEGENERIC_EXTRACT_CMDS
+ unzip $(DL_DIR)/$(PYTHON_SIMPLEGENERIC_SOURCE) -d $(@D)
+ mv $(@D)/simplegeneric-$(PYTHON_SIMPLEGENERIC_VERSION)/* $(@D)
+ rmdir $(@D)/simplegeneric-$(PYTHON_SIMPLEGENERIC_VERSION)
+endef
+
+$(eval $(python-package))
OpenPOWER on IntegriCloud