[v2,3/4] python-automat: new package

Message ID 20170802055726.18461-4-yegorslists@googlemail.com
State Accepted
Headers show

Commit Message

Yegor Yefremov Aug. 2, 2017, 5:57 a.m.
From: Yegor Yefremov <yegorslists@googlemail.com>

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 package/Config.in                          |  1 +
 package/python-automat/Config.in           |  8 ++++++++
 package/python-automat/python-automat.hash |  3 +++
 package/python-automat/python-automat.mk   | 15 +++++++++++++++
 4 files changed, 27 insertions(+)
 create mode 100644 package/python-automat/Config.in
 create mode 100644 package/python-automat/python-automat.hash
 create mode 100644 package/python-automat/python-automat.mk

Comments

Arnout Vandecappelle Aug. 13, 2017, 3:58 p.m. | #1
On 02-08-17 07:57, yegorslists@googlemail.com wrote:
> +config BR2_PACKAGE_PYTHON_AUTOMAT
> +	bool "python-automat"
> +	select BR2_PACKAGE_PYTHON_ATTRS # runtime
> +	select BR2_PACKAGE_PYTHON_SIX # runtime
> +	help
> +	  Self-service finite-state machines for the programmer on the go.

 I had to rewrap this before applying to next. Please use the check-package
script before submitting your patches.

 Regards,
 Arnout

> +
> +	  https://github.com/glyph/Automat

Patch

diff --git a/package/Config.in b/package/Config.in
index 8366ad580..72b52c5d7 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -689,6 +689,7 @@  menu "External python modules"
 	source "package/python-asn1crypto/Config.in"
 	source "package/python-attrs/Config.in"
 	source "package/python-autobahn/Config.in"
+	source "package/python-automat/Config.in"
 	source "package/python-babel/Config.in"
 	source "package/python-backports-abc/Config.in"
 	source "package/python-backports-shutil-get-terminal-size/Config.in"
diff --git a/package/python-automat/Config.in b/package/python-automat/Config.in
new file mode 100644
index 000000000..910b3d6ae
--- /dev/null
+++ b/package/python-automat/Config.in
@@ -0,0 +1,8 @@ 
+config BR2_PACKAGE_PYTHON_AUTOMAT
+	bool "python-automat"
+	select BR2_PACKAGE_PYTHON_ATTRS # runtime
+	select BR2_PACKAGE_PYTHON_SIX # runtime
+	help
+	  Self-service finite-state machines for the programmer on the go.
+
+	  https://github.com/glyph/Automat
diff --git a/package/python-automat/python-automat.hash b/package/python-automat/python-automat.hash
new file mode 100644
index 000000000..c0e350523
--- /dev/null
+++ b/package/python-automat/python-automat.hash
@@ -0,0 +1,3 @@ 
+# md5 from https://pypi.python.org/pypi/automat/json, sha256 locally computed
+md5	ad7bba58d262d8956d732330cb5ef53d  Automat-0.6.0.tar.gz
+sha256	3c1fd04ecf08ac87b4dd3feae409542e9bf7827257097b2b6ed5692f69d6f6a8  Automat-0.6.0.tar.gz
diff --git a/package/python-automat/python-automat.mk b/package/python-automat/python-automat.mk
new file mode 100644
index 000000000..96a4f5150
--- /dev/null
+++ b/package/python-automat/python-automat.mk
@@ -0,0 +1,15 @@ 
+################################################################################
+#
+# python-automat
+#
+################################################################################
+
+PYTHON_AUTOMAT_VERSION = 0.6.0
+PYTHON_AUTOMAT_SOURCE = Automat-$(PYTHON_AUTOMAT_VERSION).tar.gz
+PYTHON_AUTOMAT_SITE = https://pypi.python.org/packages/de/05/b8e453085cf8a7f27bb1226596f4ccf5cc9e758377d60284f990bbdc592c
+PYTHON_AUTOMAT_SETUP_TYPE = setuptools
+PYTHON_AUTOMAT_LICENSE = MIT
+PYTHON_AUTOMAT_LICENSE_FILES = LICENSE
+PYTHON_AUTOMAT_DEPENDENCIES = host-python-m2r host-python-setuptools-scm
+
+$(eval $(python-package))