[1/3] package/python-terminaltables: new package
diff mbox series

Message ID 20190303234420.1727-1-james.hilliard1@gmail.com
State Accepted
Headers show
Series
  • [1/3] package/python-terminaltables: new package
Related show

Commit Message

James Hilliard March 3, 2019, 11:44 p.m. UTC
From: James Hilliard <james.hilliard1@gmail.com>

Generate simple tables in terminals from a nested list of strings.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 DEVELOPERS                                          |  1 +
 package/Config.in                                   |  1 +
 package/python-terminaltables/Config.in             |  6 ++++++
 .../python-terminaltables.hash                      |  3 +++
 .../python-terminaltables/python-terminaltables.mk  | 13 +++++++++++++
 5 files changed, 24 insertions(+)
 create mode 100644 package/python-terminaltables/Config.in
 create mode 100644 package/python-terminaltables/python-terminaltables.hash
 create mode 100644 package/python-terminaltables/python-terminaltables.mk

Patch
diff mbox series

diff --git a/DEVELOPERS b/DEVELOPERS
index f192927225..5e86c2cbc7 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1039,6 +1039,7 @@  F:	package/python-async-timeout/
 F:	package/python-cchardet/
 F:	package/python-multidict/
 F:	package/python-pycares/
+F:	package/python-terminaltables/
 F:	package/python-yarl/
 
 N:	James Knight <james.knight@rockwellcollins.com>
diff --git a/package/Config.in b/package/Config.in
index 420e6e95a3..adb3cc9151 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1050,6 +1050,7 @@  menu "External python modules"
 	source "package/python-systemd/Config.in"
 	source "package/python-tabledata/Config.in"
 	source "package/python-tempora/Config.in"
+	source "package/python-terminaltables/Config.in"
 	source "package/python-texttable/Config.in"
 	source "package/python-thrift/Config.in"
 	source "package/python-tomako/Config.in"
diff --git a/package/python-terminaltables/Config.in b/package/python-terminaltables/Config.in
new file mode 100644
index 0000000000..bb3c51c48f
--- /dev/null
+++ b/package/python-terminaltables/Config.in
@@ -0,0 +1,6 @@ 
+config BR2_PACKAGE_PYTHON_TERMINALTABLES
+	bool "python-terminaltables"
+	help
+	  Generate simple tables in terminals from a nested list of strings.
+
+	  https://github.com/Robpol86/terminaltables
diff --git a/package/python-terminaltables/python-terminaltables.hash b/package/python-terminaltables/python-terminaltables.hash
new file mode 100644
index 0000000000..3184f5f716
--- /dev/null
+++ b/package/python-terminaltables/python-terminaltables.hash
@@ -0,0 +1,3 @@ 
+# md5, sha256 from https://pypi.org/pypi/terminaltables/json
+md5	863797674d8f75d22e16e6c1fdcbeb41  terminaltables-3.1.0.tar.gz
+sha256	f3eb0eb92e3833972ac36796293ca0906e998dc3be91fbe1f8615b331b853b81  terminaltables-3.1.0.tar.gz
diff --git a/package/python-terminaltables/python-terminaltables.mk b/package/python-terminaltables/python-terminaltables.mk
new file mode 100644
index 0000000000..763f82e9a2
--- /dev/null
+++ b/package/python-terminaltables/python-terminaltables.mk
@@ -0,0 +1,13 @@ 
+################################################################################
+#
+# python-terminaltables
+#
+################################################################################
+
+PYTHON_TERMINALTABLES_VERSION = 3.1.0
+PYTHON_TERMINALTABLES_SOURCE = terminaltables-$(PYTHON_TERMINALTABLES_VERSION).tar.gz
+PYTHON_TERMINALTABLES_SITE = https://files.pythonhosted.org/packages/9b/c4/4a21174f32f8a7e1104798c445dacdc1d4df86f2f26722767034e4de4bff
+PYTHON_TERMINALTABLES_SETUP_TYPE = setuptools
+PYTHON_TERMINALTABLES_LICENSE = MIT
+
+$(eval $(python-package))