From b7d854bf060632e8bcd4fbe3b8ab8074dad472f6 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Tue, 17 May 2022 15:59:30 -0600 Subject: [PATCH] package/python-typeguard: new package Signed-off-by: James Hilliard Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 1 + package/Config.in | 1 + package/python-typeguard/Config.in | 6 ++++++ package/python-typeguard/python-typeguard.hash | 5 +++++ package/python-typeguard/python-typeguard.mk | 15 +++++++++++++++ 5 files changed, 28 insertions(+) create mode 100644 package/python-typeguard/Config.in create mode 100644 package/python-typeguard/python-typeguard.hash create mode 100644 package/python-typeguard/python-typeguard.mk diff --git a/DEVELOPERS b/DEVELOPERS index 62053c4b64..55e27edf83 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1359,6 +1359,7 @@ F: package/python-sockjs/ F: package/python-terminaltables/ F: package/python-tinycss2/ F: package/python-tomli/ +F: package/python-typeguard/ F: package/python-weasyprint/ F: package/python-yarl/ F: package/python-zopfli/ diff --git a/package/Config.in b/package/Config.in index 75a756ba6f..75516dd453 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1269,6 +1269,7 @@ menu "External python modules" source "package/python-txaio/Config.in" source "package/python-txdbus/Config.in" source "package/python-txtorcon/Config.in" + source "package/python-typeguard/Config.in" source "package/python-typepy/Config.in" source "package/python-typing-extensions/Config.in" source "package/python-u-msgpack/Config.in" diff --git a/package/python-typeguard/Config.in b/package/python-typeguard/Config.in new file mode 100644 index 0000000000..6fd8351570 --- /dev/null +++ b/package/python-typeguard/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_PYTHON_TYPEGUARD + bool "python-typeguard" + help + Run-time type checker for Python. + + https://github.com/agronholm/typeguard diff --git a/package/python-typeguard/python-typeguard.hash b/package/python-typeguard/python-typeguard.hash new file mode 100644 index 0000000000..76394bcb19 --- /dev/null +++ b/package/python-typeguard/python-typeguard.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/typeguard/json +md5 22d49971f62f3baa3525349b1e03723d typeguard-2.13.3.tar.gz +sha256 00edaa8da3a133674796cf5ea87d9f4b4c367d77476e185e80251cc13dfbb8c4 typeguard-2.13.3.tar.gz +# Locally computed sha256 checksums +sha256 6163f7987dfb38d6bc320ce2b70b2f02b862bc41126516d552ef1cd43247e758 LICENSE diff --git a/package/python-typeguard/python-typeguard.mk b/package/python-typeguard/python-typeguard.mk new file mode 100644 index 0000000000..8471f2e4fd --- /dev/null +++ b/package/python-typeguard/python-typeguard.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# python-typeguard +# +################################################################################ + +PYTHON_TYPEGUARD_VERSION = 2.13.3 +PYTHON_TYPEGUARD_SOURCE = typeguard-$(PYTHON_TYPEGUARD_VERSION).tar.gz +PYTHON_TYPEGUARD_SITE = https://files.pythonhosted.org/packages/3a/38/c61bfcf62a7b572b5e9363a802ff92559cb427ee963048e1442e3aef7490 +PYTHON_TYPEGUARD_SETUP_TYPE = setuptools +PYTHON_TYPEGUARD_LICENSE = MIT +PYTHON_TYPEGUARD_LICENSE_FILES = LICENSE +PYTHON_TYPEGUARD_DEPENDENCIES = host-python-setuptools-scm + +$(eval $(python-package))