From 675fdc08f673bc992e9b169363c49fbd18662555 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Sat, 28 Jan 2023 20:52:28 -0700 Subject: [PATCH] package/python-outcome: new package Signed-off-by: James Hilliard Signed-off-by: Yann E. MORIN --- DEVELOPERS | 1 + package/Config.in | 1 + package/python-outcome/Config.in | 7 +++++++ package/python-outcome/python-outcome.hash | 7 +++++++ package/python-outcome/python-outcome.mk | 14 ++++++++++++++ 5 files changed, 30 insertions(+) create mode 100644 package/python-outcome/Config.in create mode 100644 package/python-outcome/python-outcome.hash create mode 100644 package/python-outcome/python-outcome.mk diff --git a/DEVELOPERS b/DEVELOPERS index 608512a4bb..b686dbd87a 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1388,6 +1388,7 @@ F: package/python-logstash/ F: package/python-maturin/ F: package/python-multidict/ F: package/python-mypy-extensions/ +F: package/python-outcome/ F: package/python-pathspec/ F: package/python-pep517/ F: package/python-pycares/ diff --git a/package/Config.in b/package/Config.in index 594590a52a..195398b844 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1148,6 +1148,7 @@ menu "External python modules" source "package/python-oauthlib/Config.in" source "package/python-opcua-asyncio/Config.in" source "package/python-orjson/Config.in" + source "package/python-outcome/Config.in" source "package/python-packaging/Config.in" source "package/python-paho-mqtt/Config.in" source "package/python-paramiko/Config.in" diff --git a/package/python-outcome/Config.in b/package/python-outcome/Config.in new file mode 100644 index 0000000000..bd51f3daea --- /dev/null +++ b/package/python-outcome/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_PYTHON_OUTCOME + bool "python-outcome" + select BR2_PACKAGE_PYTHON_ATTRS # runtime + help + Capture the outcome of Python function calls. + + https://github.com/python-trio/outcome diff --git a/package/python-outcome/python-outcome.hash b/package/python-outcome/python-outcome.hash new file mode 100644 index 0000000000..43796e89ac --- /dev/null +++ b/package/python-outcome/python-outcome.hash @@ -0,0 +1,7 @@ +# md5, sha256 from https://pypi.org/pypi/outcome/json +md5 58612ee4407901985f85ad3869dd83b8 outcome-1.2.0.tar.gz +sha256 6f82bd3de45da303cf1f771ecafa1633750a358436a8bb60e06a1ceb745d2672 outcome-1.2.0.tar.gz +# Locally computed sha256 checksums +sha256 652c878488d1456361e08c3f8607fd7ba59892a14103d15cce4ff93c85b5cc8b LICENSE +sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE.APACHE2 +sha256 3e6dae555eb92787fc82d1d48355677f454c7f65aeb38d3f9e72bf9a3daf034b LICENSE.MIT diff --git a/package/python-outcome/python-outcome.mk b/package/python-outcome/python-outcome.mk new file mode 100644 index 0000000000..27d7fdede3 --- /dev/null +++ b/package/python-outcome/python-outcome.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-outcome +# +################################################################################ + +PYTHON_OUTCOME_VERSION = 1.2.0 +PYTHON_OUTCOME_SOURCE = outcome-$(PYTHON_OUTCOME_VERSION).tar.gz +PYTHON_OUTCOME_SITE = https://files.pythonhosted.org/packages/dd/91/741e1626e89fdc3664169e16300c59eefa4b23540cc6d6c70450f885098f +PYTHON_OUTCOME_SETUP_TYPE = setuptools +PYTHON_OUTCOME_LICENSE = Apache-2.0 or MIT +PYTHON_OUTCOME_LICENSE_FILES = LICENSE LICENSE.APACHE2 LICENSE.MIT + +$(eval $(python-package))