[Buildroot] [git commit] package/python-httpx: new package
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Mon Dec 25 20:25:19 UTC 2023
commit: https://git.buildroot.net/buildroot/commit/?id=ae9137661bc11aeb037f0c941d122b1511495729
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
package/Config.in | 1 +
package/python-httpx/Config.in | 11 +++++++++++
package/python-httpx/python-httpx.hash | 5 +++++
package/python-httpx/python-httpx.mk | 17 +++++++++++++++++
4 files changed, 34 insertions(+)
diff --git a/package/Config.in b/package/Config.in
index f9867bf2ca..98653ff29d 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1115,6 +1115,7 @@ menu "External python modules"
source "package/python-html5lib/Config.in"
source "package/python-httpcore/Config.in"
source "package/python-httplib2/Config.in"
+ source "package/python-httpx/Config.in"
source "package/python-huepy/Config.in"
source "package/python-humanize/Config.in"
source "package/python-hwdata/Config.in"
diff --git a/package/python-httpx/Config.in b/package/python-httpx/Config.in
new file mode 100644
index 0000000000..592cd559cd
--- /dev/null
+++ b/package/python-httpx/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PYTHON_HTTPX
+ bool "python-httpx"
+ select BR2_PACKAGE_PYTHON_ANYIO # runtime
+ select BR2_PACKAGE_PYTHON_CERTIFI # runtime
+ select BR2_PACKAGE_PYTHON_HTTPCORE # runtime
+ select BR2_PACKAGE_PYTHON_IDNA # runtime
+ select BR2_PACKAGE_PYTHON_SNIFFIO # runtime
+ help
+ The next generation HTTP client.
+
+ https://github.com/encode/httpx
diff --git a/package/python-httpx/python-httpx.hash b/package/python-httpx/python-httpx.hash
new file mode 100644
index 0000000000..fc4a68cf51
--- /dev/null
+++ b/package/python-httpx/python-httpx.hash
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/httpx/json
+md5 f4dcf1002b2116c634a53534ce9d6776 httpx-0.25.2.tar.gz
+sha256 8b8fcaa0c8ea7b05edd69a094e63a2094c4efcb48129fb757361bc423c0ad9e8 httpx-0.25.2.tar.gz
+# Locally computed sha256 checksums
+sha256 4ec59d544f12b5f539a3a716fd321ac58ccd8030b465221f2c880200cdf28d8d LICENSE.md
diff --git a/package/python-httpx/python-httpx.mk b/package/python-httpx/python-httpx.mk
new file mode 100644
index 0000000000..4227acec59
--- /dev/null
+++ b/package/python-httpx/python-httpx.mk
@@ -0,0 +1,17 @@
+################################################################################
+#
+# python-httpx
+#
+################################################################################
+
+PYTHON_HTTPX_VERSION = 0.25.2
+PYTHON_HTTPX_SOURCE = httpx-$(PYTHON_HTTPX_VERSION).tar.gz
+PYTHON_HTTPX_SITE = https://files.pythonhosted.org/packages/8c/23/911d93a022979d3ea295f659fbe7edb07b3f4561a477e83b3a6d0e0c914e
+PYTHON_HTTPX_SETUP_TYPE = pep517
+PYTHON_HTTPX_LICENSE = BSD-3-Clause
+PYTHON_HTTPX_LICENSE_FILES = LICENSE.md
+PYTHON_HTTPX_DEPENDENCIES = \
+ host-python-hatchling \
+ host-python-hatch-fancy-pypi-readme
+
+$(eval $(python-package))
More information about the buildroot
mailing list