From 71c132494062055bf07c23617a56f0b705dbe93b Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Mon, 6 Feb 2023 06:48:38 -0700 Subject: [PATCH] package/python-h11: new package Signed-off-by: James Hilliard Signed-off-by: Peter Korsgaard --- DEVELOPERS | 1 + package/Config.in | 1 + package/python-h11/Config.in | 7 +++++++ package/python-h11/python-h11.hash | 5 +++++ package/python-h11/python-h11.mk | 14 ++++++++++++++ 5 files changed, 28 insertions(+) create mode 100644 package/python-h11/Config.in create mode 100644 package/python-h11/python-h11.hash create mode 100644 package/python-h11/python-h11.mk diff --git a/DEVELOPERS b/DEVELOPERS index 6597225ac3..4c2352b617 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1380,6 +1380,7 @@ F: package/python-flatbuffers/ F: package/python-fonttools/ F: package/python-frozenlist/ F: package/python-greenlet/ +F: package/python-h11/ F: package/python-hatchling/ F: package/python-hatch-fancy-pypi-readme/ F: package/python-hatch-vcs/ diff --git a/package/Config.in b/package/Config.in index 7817b51fc2..b6211f1102 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1071,6 +1071,7 @@ menu "External python modules" source "package/python-gpiozero/Config.in" source "package/python-greenlet/Config.in" source "package/python-gunicorn/Config.in" + source "package/python-h11/Config.in" source "package/python-h2/Config.in" source "package/python-hiredis/Config.in" source "package/python-hpack/Config.in" diff --git a/package/python-h11/Config.in b/package/python-h11/Config.in new file mode 100644 index 0000000000..736620d782 --- /dev/null +++ b/package/python-h11/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_PYTHON_H11 + bool "python-h11" + help + A pure-Python, bring-your-own-I/O implementation of + HTTP/1.1. + + https://github.com/python-hyper/h11 diff --git a/package/python-h11/python-h11.hash b/package/python-h11/python-h11.hash new file mode 100644 index 0000000000..0c65a11d00 --- /dev/null +++ b/package/python-h11/python-h11.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/h11/json +md5 84c33fc0aa1f868928114c4d02c43dc2 h11-0.14.0.tar.gz +sha256 8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d h11-0.14.0.tar.gz +# Locally computed sha256 checksums +sha256 37db5bb85926db28a427a25867f10b1232003aea1be69ccb851138adb8e6f361 LICENSE.txt diff --git a/package/python-h11/python-h11.mk b/package/python-h11/python-h11.mk new file mode 100644 index 0000000000..d7dca5244b --- /dev/null +++ b/package/python-h11/python-h11.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-h11 +# +################################################################################ + +PYTHON_H11_VERSION = 0.14.0 +PYTHON_H11_SOURCE = h11-$(PYTHON_H11_VERSION).tar.gz +PYTHON_H11_SITE = https://files.pythonhosted.org/packages/f5/38/3af3d3633a34a3316095b39c8e8fb4853a28a536e55d347bd8d8e9a14b03 +PYTHON_H11_SETUP_TYPE = setuptools +PYTHON_H11_LICENSE = MIT +PYTHON_H11_LICENSE_FILES = LICENSE.txt + +$(eval $(python-package))