package/python-decorator: new package
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Thu, 27 Apr 2017 21:33:31 +0000 (14:33 -0700)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 4 May 2017 19:46:40 +0000 (21:46 +0200)
Add 'decorator'[1] package to Buildroot. Needed by 'traitlets'
package, which is added in the next patch.

[1] https://pypi.python.org/pypi/decorator

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
[Thomas: download from PyPi, add hash file, add entry in DEVELOPERS file.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
DEVELOPERS
package/Config.in
package/python-decorator/Config.in [new file with mode: 0644]
package/python-decorator/python-decorator.hash [new file with mode: 0644]
package/python-decorator/python-decorator.mk [new file with mode: 0644]

index 82eb819ebecfaac337a5babfc2a52e0b66c2f429..a3da3975086076eae291b7278456977ff22cd112 100644 (file)
@@ -71,6 +71,9 @@ F:    package/openal/
 F:     package/p7zip/
 F:     package/wine/
 
+N:     Andrey Smirnov <andrew.smirnov@gmail.com
+F:     package/python-decorator/
+
 N:     Andrew Ruder <andrew.ruder@elecsyscorp.com>
 F:     package/expect/
 
index acaf43ccc6d84f72eff36625a33fad47d4580d7e..e38a9345e1e467bc79a3043897146f6511f2a408 100644 (file)
@@ -698,6 +698,7 @@ menu "External python modules"
        source "package/python-daemon/Config.in"
        source "package/python-dataproperty/Config.in"
        source "package/python-dateutil/Config.in"
+       source "package/python-decorator/Config.in"
        source "package/python-dialog/Config.in"
        source "package/python-dialog3/Config.in"
        source "package/python-dicttoxml/Config.in"
diff --git a/package/python-decorator/Config.in b/package/python-decorator/Config.in
new file mode 100644 (file)
index 0000000..e7ec00c
--- /dev/null
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_DECORATOR
+       bool "python-decorator"
+       help
+         Better living through Python with decorators
+
+         https://github.com/micheles/decorator
diff --git a/package/python-decorator/python-decorator.hash b/package/python-decorator/python-decorator.hash
new file mode 100644 (file)
index 0000000..293f1ca
--- /dev/null
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi/decorator/json, sha256 locally calculated
+md5 73644c8f0bd4983d1b6a34b49adec0ae decorator-4.0.11.tar.gz
+sha256 953d6bf082b100f43229cf547f4f97f97e970f5ad645ee7601d55ff87afdfe76 decorator-4.0.11.tar.gz
diff --git a/package/python-decorator/python-decorator.mk b/package/python-decorator/python-decorator.mk
new file mode 100644 (file)
index 0000000..c0c43f6
--- /dev/null
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-decorator
+#
+################################################################################
+
+PYTHON_DECORATOR_VERSION = 4.0.11
+PYTHON_DECORATOR_SITE = https://pypi.python.org/packages/cc/ac/5a16f1fc0506ff72fcc8fd4e858e3a1c231f224ab79bb7c4c9b2094cc570
+PYTHON_DECORATOR_SOURCE = decorator-$(PYTHON_DECORATOR_VERSION).tar.gz
+PYTHON_DECORATOR_LICENSE = BSD-2-Clause
+PYTHON_DECORATOR_SETUP_TYPE = setuptools
+
+$(eval $(python-package))