package/python3-decorator: new package

The host-python-networkx package needs to be built for the
host-python3, even when the target Python is not necessarily Python
3.x. Since it depends on host-python-decorator, we need a Python 3
variant of it, which this patch introduces.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Thomas Petazzoni 2020-07-23 21:45:59 +02:00 committed by Yann E. MORIN
parent ef236e2271
commit d4a0dc5d57
3 changed files with 18 additions and 0 deletions

View file

@ -4,6 +4,7 @@
#
################################################################################
# Please keep in sync with package/python3-decorator/python3-decorator.mk
PYTHON_DECORATOR_VERSION = 4.4.1
PYTHON_DECORATOR_SITE = https://files.pythonhosted.org/packages/dc/c3/9d378af09f5737cfd524b844cd2fbb0d2263a35c11d712043daab290144d
PYTHON_DECORATOR_SOURCE = decorator-$(PYTHON_DECORATOR_VERSION).tar.gz

View file

@ -0,0 +1 @@
../python-decorator/python-decorator.hash

View file

@ -0,0 +1,16 @@
################################################################################
#
# python3-decorator
#
################################################################################
# Please keep in sync with package/python-decorator/python-decorator.mk
PYTHON3_DECORATOR_VERSION = 4.4.1
PYTHON3_DECORATOR_SITE = https://files.pythonhosted.org/packages/dc/c3/9d378af09f5737cfd524b844cd2fbb0d2263a35c11d712043daab290144d
PYTHON3_DECORATOR_SOURCE = decorator-$(PYTHON_DECORATOR_VERSION).tar.gz
PYTHON3_DECORATOR_LICENSE = BSD-2-Clause
PYTHON3_DECORATOR_LICENSE_FILES = LICENSE.txt
PYTHON3_DECORATOR_SETUP_TYPE = setuptools
HOST_PYTHON3_DECORATOR_NEEDS_HOST_PYTHON = python3
$(eval $(host-python-package))