[2/4] package/python-cheetah3: new package
diff mbox series

Message ID 20190427144136.9072-2-fontaine.fabrice@gmail.com
State New
Headers show
Series
  • Untitled series #104965
Related show

Commit Message

Fabrice Fontaine April 27, 2019, 2:41 p.m. UTC
host-python-cheetah3 for host-python3 is required for mongodb 4.1.10

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 DEVELOPERS                                   |  1 +
 package/Config.in                            |  1 +
 package/python-cheetah3/Config.in            |  6 ++++++
 package/python-cheetah3/python-cheetah3.hash |  5 +++++
 package/python-cheetah3/python-cheetah3.mk   | 18 ++++++++++++++++++
 5 files changed, 31 insertions(+)
 create mode 100644 package/python-cheetah3/Config.in
 create mode 100644 package/python-cheetah3/python-cheetah3.hash
 create mode 100644 package/python-cheetah3/python-cheetah3.mk

Patch
diff mbox series

diff --git a/DEVELOPERS b/DEVELOPERS
index 56556413aa..39dd034163 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -834,6 +834,7 @@  F:	package/oniguruma/
 F:	package/oprofile/
 F:	package/pcmanfm/
 F:	package/python-backcall/
+F:	package/python-cheetah3/
 F:	package/python-jedi/
 F:	package/python-parso/
 F:	package/rygel/
diff --git a/package/Config.in b/package/Config.in
index f592e74a99..59f1bda3b1 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -845,6 +845,7 @@  menu "External python modules"
 	source "package/python-characteristic/Config.in"
 	source "package/python-chardet/Config.in"
 	source "package/python-cheetah/Config.in"
+	source "package/python-cheetah3/Config.in"
 	source "package/python-cheroot/Config.in"
 	source "package/python-cherrypy/Config.in"
 	source "package/python-click/Config.in"
diff --git a/package/python-cheetah3/Config.in b/package/python-cheetah3/Config.in
new file mode 100644
index 0000000000..9c5761f556
--- /dev/null
+++ b/package/python-cheetah3/Config.in
@@ -0,0 +1,6 @@ 
+config BR2_PACKAGE_PYTHON_CHEETAH3
+	bool "python-cheetah3"
+	help
+	  Cheetah is a template engine and code generation tool.
+
+	  http://cheetahtemplate.org/
diff --git a/package/python-cheetah3/python-cheetah3.hash b/package/python-cheetah3/python-cheetah3.hash
new file mode 100644
index 0000000000..67f4a720db
--- /dev/null
+++ b/package/python-cheetah3/python-cheetah3.hash
@@ -0,0 +1,5 @@ 
+# md5, sha256 from https://pypi.org/pypi/cheetah3/json
+md5	e0cbd10b6fa0d4b294f7fb6453d85a2a  Cheetah3-3.2.1.tar.gz
+sha256	685f961d2761e140bfea67156a013313acda66a229edc6c8708b71d9080ece9c  Cheetah3-3.2.1.tar.gz
+# Locally computed sha256 checksums
+sha256	21b356594daaefc1b482b7f7ef2b7a83910c95ebd49d7170ce6ec5a18f084442  LICENSE
diff --git a/package/python-cheetah3/python-cheetah3.mk b/package/python-cheetah3/python-cheetah3.mk
new file mode 100644
index 0000000000..56a1480e1a
--- /dev/null
+++ b/package/python-cheetah3/python-cheetah3.mk
@@ -0,0 +1,18 @@ 
+################################################################################
+#
+# python-cheetah3
+#
+################################################################################
+
+PYTHON_CHEETAH3_VERSION = 3.2.1
+PYTHON_CHEETAH3_SOURCE = Cheetah3-$(PYTHON_CHEETAH3_VERSION).tar.gz
+PYTHON_CHEETAH3_SITE = https://files.pythonhosted.org/packages/d8/49/25d1d310c274433e1bc82736483f2c57f870688deddb0c56f296dcfe36f7
+PYTHON_CHEETAH3_SETUP_TYPE = setuptools
+PYTHON_CHEETAH3_LICENSE = MIT
+PYTHON_CHEETAH3_LICENSE_FILES = LICENSE
+
+# Needed to build mongodb
+HOST_PYTHON_CHEETAH3_NEEDS_HOST_PYTHON = python3
+
+$(eval $(python-package))
+$(eval $(host-python-package))