[Buildroot] [PATCH v3 3/8] package/python-starlette: new package
James Hilliard
james.hilliard1 at gmail.com
Thu Dec 14 16:54:15 UTC 2023
Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
Reviewed-by: Marcus Hoffmann <marcus.hoffmann at othermo.de>
---
Changes v1 -> v2:
- downgrade to version 0.27.0
---
package/Config.in | 1 +
package/python-starlette/Config.in | 7 +++++++
package/python-starlette/python-starlette.hash | 5 +++++
package/python-starlette/python-starlette.mk | 15 +++++++++++++++
4 files changed, 28 insertions(+)
create mode 100644 package/python-starlette/Config.in
create mode 100644 package/python-starlette/python-starlette.hash
create mode 100644 package/python-starlette/python-starlette.mk
diff --git a/package/Config.in b/package/Config.in
index c023e0ef3f..3a4bf21a2a 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1338,6 +1338,7 @@ menu "External python modules"
source "package/python-sqliteschema/Config.in"
source "package/python-sqlparse/Config.in"
source "package/python-stack-data/Config.in"
+ source "package/python-starlette/Config.in"
source "package/python-systemd/Config.in"
source "package/python-tabledata/Config.in"
source "package/python-tempora/Config.in"
diff --git a/package/python-starlette/Config.in b/package/python-starlette/Config.in
new file mode 100644
index 0000000000..90f590689a
--- /dev/null
+++ b/package/python-starlette/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_STARLETTE
+ bool "python-starlette"
+ select BR2_PACKAGE_PYTHON_ANYIO # runtime
+ help
+ The little ASGI library that shines.
+
+ https://github.com/encode/starlette
diff --git a/package/python-starlette/python-starlette.hash b/package/python-starlette/python-starlette.hash
new file mode 100644
index 0000000000..a7f1f66446
--- /dev/null
+++ b/package/python-starlette/python-starlette.hash
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/starlette/json
+md5 5193c4b7d2ea4c93635c340a7ba9b54f starlette-0.27.0.tar.gz
+sha256 6a6b0d042acb8d469a01eba54e9cda6cbd24ac602c4cd016723117d6a7e73b75 starlette-0.27.0.tar.gz
+# Locally computed sha256 checksums
+sha256 dcb95677a02240243187e964f941847d19b17821cf99e5afae684fab328c19bf LICENSE.md
diff --git a/package/python-starlette/python-starlette.mk b/package/python-starlette/python-starlette.mk
new file mode 100644
index 0000000000..40932929a0
--- /dev/null
+++ b/package/python-starlette/python-starlette.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# python-starlette
+#
+################################################################################
+
+PYTHON_STARLETTE_VERSION = 0.27.0
+PYTHON_STARLETTE_SOURCE = starlette-$(PYTHON_STARLETTE_VERSION).tar.gz
+PYTHON_STARLETTE_SITE = https://files.pythonhosted.org/packages/06/68/559bed5484e746f1ab2ebbe22312f2c25ec62e4b534916d41a8c21147bf8
+PYTHON_STARLETTE_SETUP_TYPE = pep517
+PYTHON_STARLETTE_LICENSE = BSD-3-Clause
+PYTHON_STARLETTE_LICENSE_FILES = LICENSE.md
+PYTHON_STARLETTE_DEPENDENCIES = host-python-hatchling
+
+$(eval $(python-package))
--
2.34.1
More information about the buildroot
mailing list