[Buildroot] [PATCH v2 2/4] package/python-cheetah3: new package

Yegor Yefremov yegorslists at googlemail.com
Wed Mar 11 09:52:27 UTC 2020


Hi Titouan, all,

On Sat, Oct 26, 2019 at 5:30 PM Titouan Christophe
<titouan.christophe at railnova.eu> wrote:
>
> From: Fabrice Fontaine <fontaine.fabrice at gmail.com>
>
> host-python-cheetah3 for host-python3 is required for mongodb 4.1.10
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> [Titouan: Fix comment line contains UTF-8 characters]
> Signed-off-by: Titouan Christophe <titouan.christophe at railnova.eu>

cheetah3 seems to be a drop-in replacement for cheetah [1]. So I would
suggest just to bump the python-cheetah package.

Another question is, what to do with the markdown dependency [2]? If
it is really required then we make this package Py3 only (because of
python-markdown) and hence, don't need
HOST_PYTHON_CHEETAH3_NEEDS_HOST_PYTHON = python3.

[1] https://github.com/CheetahTemplate3/cheetah3/issues/2
[2] https://github.com/CheetahTemplate3/cheetah3/issues/24

Yegor


>  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
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index b9e6881419..952b49fa17 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -867,6 +867,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 901c25fe02..9a22aa1e52 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -860,6 +860,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..38a0921297
> --- /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))
> --
> 2.21.0
>


More information about the buildroot mailing list