From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 05/10] package: add python-cached-property
Date: Fri, 9 Mar 2018 20:16:56 +0100 [thread overview]
Message-ID: <20180309191701.23760-6-peter@korsgaard.com> (raw)
In-Reply-To: <20180309191701.23760-1-peter@korsgaard.com>
A decorator for caching properties in classes.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/python-cached-property/Config.in | 6 ++++++
package/python-cached-property/python-cached-property.hash | 4 ++++
package/python-cached-property/python-cached-property.mk | 14 ++++++++++++++
5 files changed, 26 insertions(+)
create mode 100644 package/python-cached-property/Config.in
create mode 100644 package/python-cached-property/python-cached-property.hash
create mode 100644 package/python-cached-property/python-cached-property.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 9b68652b5f..ced3af7169 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1385,6 +1385,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/
diff --git a/package/Config.in b/package/Config.in
index c1bf7067aa..1043338a7e 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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
index 0000000000..8343973342
--- /dev/null
+++ b/package/python-cached-property/Config.in
@@ -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
index 0000000000..255b2d9ec6
--- /dev/null
+++ b/package/python-cached-property/python-cached-property.hash
@@ -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
index 0000000000..ccc2037f4f
--- /dev/null
+++ b/package/python-cached-property/python-cached-property.mk
@@ -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
+PYTHON_CACHED_PROPERTY_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))
--
2.11.0
next prev parent reply other threads:[~2018-03-09 19:16 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-09 19:16 [Buildroot] [PATCH 00/10] Add docker-compose Peter Korsgaard
2018-03-09 19:16 ` [Buildroot] [PATCH 01/10] package: add python-docker-pycreds Peter Korsgaard
2018-03-10 6:10 ` Yegor Yefremov
2018-03-10 7:25 ` Peter Korsgaard
2018-03-09 19:16 ` [Buildroot] [PATCH 02/10] package: add python-websocket-client Peter Korsgaard
2018-03-10 6:11 ` Yegor Yefremov
2018-03-10 7:26 ` Peter Korsgaard
2018-03-09 19:16 ` [Buildroot] [PATCH 03/10] package: add python-backports-ssl-match-hostname Peter Korsgaard
2018-03-10 6:11 ` Yegor Yefremov
2018-03-10 7:26 ` Peter Korsgaard
2018-03-09 19:16 ` [Buildroot] [PATCH 04/10] package: add python-docker Peter Korsgaard
2018-03-10 6:13 ` Yegor Yefremov
2018-03-09 19:16 ` Peter Korsgaard [this message]
2018-03-10 6:14 ` [Buildroot] [PATCH 05/10] package: add python-cached-property Yegor Yefremov
2018-03-10 7:35 ` Peter Korsgaard
2018-03-09 19:16 ` [Buildroot] [PATCH 06/10] package: add python-texttable Peter Korsgaard
2018-03-10 6:18 ` Yegor Yefremov
2018-03-10 7:37 ` Peter Korsgaard
2018-03-09 19:16 ` [Buildroot] [PATCH 07/10] package: add python-dockerpty Peter Korsgaard
2018-03-10 6:19 ` Yegor Yefremov
2018-03-10 7:37 ` Peter Korsgaard
2018-03-09 19:16 ` [Buildroot] [PATCH 08/10] package: add python-functools32 Peter Korsgaard
2018-03-10 6:15 ` Yegor Yefremov
2018-03-10 7:38 ` Peter Korsgaard
2018-03-30 21:25 ` Peter Korsgaard
2018-03-09 19:17 ` [Buildroot] [PATCH 09/10] python-jsonschema: needs python-functools32 when used with python 2.7 Peter Korsgaard
2018-03-10 6:18 ` Yegor Yefremov
2018-03-30 21:25 ` Peter Korsgaard
2018-03-09 19:17 ` [Buildroot] [PATCH 10/10] package: add docker-compose Peter Korsgaard
2018-03-10 6:18 ` Yegor Yefremov
2018-03-10 7:39 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180309191701.23760-6-peter@korsgaard.com \
--to=peter@korsgaard.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox