From 7410d6c5c63d76590a1c68f49e9be33663946f84 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Mon, 22 Oct 2018 17:37:08 +0800 Subject: [PATCH] python-async-timeout: new package asyncio-compatible timeout context manager. Signed-off-by: James Hilliard Reviewed-by: Yegor Yefremov Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- DEVELOPERS | 1 + package/Config.in | 1 + package/python-async-timeout/Config.in | 7 +++++++ .../python-async-timeout/python-async-timeout.hash | 5 +++++ .../python-async-timeout/python-async-timeout.mk | 13 +++++++++++++ 5 files changed, 27 insertions(+) create mode 100644 package/python-async-timeout/Config.in create mode 100644 package/python-async-timeout/python-async-timeout.hash create mode 100644 package/python-async-timeout/python-async-timeout.mk diff --git a/DEVELOPERS b/DEVELOPERS index e2c5eb902c..bd68ca34b6 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -979,6 +979,7 @@ F: configs/pine64_defconfig F: configs/pine64_sopine_defconfig N: James Hilliard +F: package/python-async-timeout/ F: package/python-multidict/ F: package/python-yarl/ diff --git a/package/Config.in b/package/Config.in index d7e24154dc..8f561b3491 100644 --- a/package/Config.in +++ b/package/Config.in @@ -798,6 +798,7 @@ menu "External python modules" source "package/python-argh/Config.in" source "package/python-arrow/Config.in" source "package/python-asn1crypto/Config.in" + source "package/python-async-timeout/Config.in" source "package/python-attrs/Config.in" source "package/python-autobahn/Config.in" source "package/python-automat/Config.in" diff --git a/package/python-async-timeout/Config.in b/package/python-async-timeout/Config.in new file mode 100644 index 0000000000..659a0fdeca --- /dev/null +++ b/package/python-async-timeout/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_PYTHON_ASYNC_TIMEOUT + bool "python-async-timeout" + depends on BR2_PACKAGE_PYTHON3 + help + asyncio-compatible timeout context manager. + + https://github.com/aio-libs/async-timeout diff --git a/package/python-async-timeout/python-async-timeout.hash b/package/python-async-timeout/python-async-timeout.hash new file mode 100644 index 0000000000..f99e1daddb --- /dev/null +++ b/package/python-async-timeout/python-async-timeout.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.python.org/pypi/async_timeout/json +md5 305c4fa529f2485c403d0dbe14390175 async-timeout-3.0.1.tar.gz +sha256 0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f async-timeout-3.0.1.tar.gz +# Locally computed sha256 checksums +sha256 b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1 LICENSE diff --git a/package/python-async-timeout/python-async-timeout.mk b/package/python-async-timeout/python-async-timeout.mk new file mode 100644 index 0000000000..dc14e14b56 --- /dev/null +++ b/package/python-async-timeout/python-async-timeout.mk @@ -0,0 +1,13 @@ +################################################################################ +# +# python-async-timeout +# +################################################################################ +PYTHON_ASYNC_TIMEOUT_VERSION = 3.0.1 +PYTHON_ASYNC_TIMEOUT_SOURCE = async-timeout-$(PYTHON_ASYNC_TIMEOUT_VERSION).tar.gz +PYTHON_ASYNC_TIMEOUT_SITE = https://files.pythonhosted.org/packages/a1/78/aae1545aba6e87e23ecab8d212b58bb70e72164b67eb090b81bb17ad38e3 +PYTHON_ASYNC_TIMEOUT_LICENSE = Apache-2.0 +PYTHON_ASYNC_TIMEOUT_LICENSE_FILES = LICENSE +PYTHON_ASYNC_TIMEOUT_SETUP_TYPE = setuptools + +$(eval $(python-package)) -- 2.30.2