]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package: add python-cached-property
authorPeter Korsgaard <peter@korsgaard.com>
Fri, 9 Mar 2018 19:16:56 +0000 (20:16 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 10 Mar 2018 07:36:11 +0000 (08:36 +0100)
A decorator for caching properties in classes.

[Peter: Correct license as pointed out by Yegor]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
DEVELOPERS
package/Config.in
package/python-cached-property/Config.in [new file with mode: 0644]
package/python-cached-property/python-cached-property.hash [new file with mode: 0644]
package/python-cached-property/python-cached-property.mk [new file with mode: 0644]

index 0bb140ec98be505a2a436f06f4062490c299331b..27a906c19fdeef2dc9f9984a309ef892fff6f77d 100644 (file)
@@ -1386,6 +1386,7 @@ F:        package/memtool/
 F:     package/mosquitto/
 F:     package/python-alsaaudio/
 F:     package/python-backports-ssl-match-hostname/
+F:     package/python-cached-property/
 F:     package/python-docker/
 F:     package/python-docker-pycreds/
 F:     package/python-enum/
index c1bf7067aab9f12378ef32e951b012aa7c154e2f..1043338a7e01dc6c2fc44f6e27b2a0601455131f 100644 (file)
@@ -737,6 +737,7 @@ menu "External python modules"
        source "package/python-beautifulsoup4/Config.in"
        source "package/python-bitstring/Config.in"
        source "package/python-bottle/Config.in"
+       source "package/python-cached-property/Config.in"
        source "package/python-can/Config.in"
        source "package/python-cbor/Config.in"
        source "package/python-certifi/Config.in"
diff --git a/package/python-cached-property/Config.in b/package/python-cached-property/Config.in
new file mode 100644 (file)
index 0000000..8343973
--- /dev/null
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_CACHED_PROPERTY
+       bool "python-cached-property"
+       help
+         A decorator for caching properties in classes.
+
+         https://github.com/pydanny/cached-property
diff --git a/package/python-cached-property/python-cached-property.hash b/package/python-cached-property/python-cached-property.hash
new file mode 100644 (file)
index 0000000..255b2d9
--- /dev/null
@@ -0,0 +1,4 @@
+# md5 from https://pypi.python.org/pypi/cached-property/json, sha256 locally computed
+md5    fc7a49d2c4b7987f92b00c7b49128530  cached-property-1.4.0.tar.gz
+sha256 a2fa0f89dd422f7e5dd992a4a3e0ce209d5d1e47a4db28fd0a7b5273ec8da3f0  cached-property-1.4.0.tar.gz
+sha256 ba4756c8039b25b66e3c456cc5bf635aa528cf459b97ee1499d06684ccd89b9a  LICENSE
diff --git a/package/python-cached-property/python-cached-property.mk b/package/python-cached-property/python-cached-property.mk
new file mode 100644 (file)
index 0000000..3e13638
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-cached-property
+#
+################################################################################
+
+PYTHON_CACHED_PROPERTY_VERSION = 1.4.0
+PYTHON_CACHED_PROPERTY_SOURCE = cached-property-$(PYTHON_CACHED_PROPERTY_VERSION).tar.gz
+PYTHON_CACHED_PROPERTY_SITE = https://pypi.python.org/packages/ce/87/72b7a5a0504ad8d5d5ea6804ac5b24ce4f07869f61c47ea00cd4382320ba
+PYTHON_CACHED_PROPERTY_SETUP_TYPE = setuptools
+PYTHON_CACHED_PROPERTY_LICENSE = BSD-3-Clause
+PYTHON_CACHED_PROPERTY_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))