From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] python-enum: new package
Date: Mon, 15 Dec 2014 15:32:12 +0100 [thread overview]
Message-ID: <1418653932-6341-1-git-send-email-peter@korsgaard.com> (raw)
This is an alternative to python-enum34 with a somewhat different API.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
package/Config.in | 1 +
package/python-enum/Config.in | 12 ++++++++++++
package/python-enum/python-enum.hash | 3 +++
package/python-enum/python-enum.mk | 14 ++++++++++++++
4 files changed, 30 insertions(+)
create mode 100644 package/python-enum/Config.in
create mode 100644 package/python-enum/python-enum.hash
create mode 100644 package/python-enum/python-enum.mk
diff --git a/package/Config.in b/package/Config.in
index 48be2df..f3bf25b 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -496,6 +496,7 @@ menu "external python modules"
source "package/python-dialog/Config.in"
source "package/python-docopt/Config.in"
source "package/python-dpkt/Config.in"
+ source "package/python-enum/Config.in"
source "package/python-enum34/Config.in"
source "package/python-flask/Config.in"
source "package/python-flup/Config.in"
diff --git a/package/python-enum/Config.in b/package/python-enum/Config.in
new file mode 100644
index 0000000..e26ae8b
--- /dev/null
+++ b/package/python-enum/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_PYTHON_ENUM
+ bool "python-enum"
+ depends on BR2_PACKAGE_PYTHON
+ help
+ Robust enumerated type support in Python
+
+ An enumeration object is an immutable sequence object built
+ from a sequence of strings. Each value is also available as
+ an attribute. Such values are constant. Comparisons and
+ enumeration are supported.
+
+ https://pypi.python.org/pypi/enum
diff --git a/package/python-enum/python-enum.hash b/package/python-enum/python-enum.hash
new file mode 100644
index 0000000..c7c1924
--- /dev/null
+++ b/package/python-enum/python-enum.hash
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=ce75c7c3c86741175a84456cc5bd531e, sha256 locally computed
+md5 ce75c7c3c86741175a84456cc5bd531e enum-0.4.4.tar.gz
+sha256 9bdfacf543baf2350df7613eb37f598a802f346985ca0dc1548be6494140fdff enum-0.4.4.tar.gz
diff --git a/package/python-enum/python-enum.mk b/package/python-enum/python-enum.mk
new file mode 100644
index 0000000..0131be3
--- /dev/null
+++ b/package/python-enum/python-enum.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-enum
+#
+################################################################################
+
+PYTHON_ENUM_VERSION = 0.4.4
+PYTHON_ENUM_SOURCE = enum-$(PYTHON_ENUM_VERSION).tar.gz
+PYTHON_ENUM_SITE = http://pypi.python.org/packages/source/e/enum
+PYTHON_ENUM_SETUP_TYPE = setuptools
+PYTHON_ENUM_LICENSE = GPLv2+ or Python software foundation license v2
+PYTHON_ENUM_LICENSE_FILES = LICENSE.GPL LICENSE.PSF
+
+$(eval $(python-package))
--
2.1.3
next reply other threads:[~2014-12-15 14:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-15 14:32 Peter Korsgaard [this message]
2014-12-20 20:57 ` [Buildroot] [PATCH] python-enum: new package Thomas Petazzoni
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=1418653932-6341-1-git-send-email-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