From 09bf1365f138ea22f2b9b64fc317ce6808d73d9a Mon Sep 17 00:00:00 2001 From: Daniel Crowe Date: Tue, 1 Apr 2025 10:07:22 +1030 Subject: [PATCH] package/python-cachelib: new package Provides caching APIs. https://cachelib.readthedocs.io/en/stable/ Signed-off-by: Daniel Crowe Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 3 +++ package/Config.in | 1 + package/python-cachelib/Config.in | 6 ++++++ package/python-cachelib/python-cachelib.hash | 6 ++++++ package/python-cachelib/python-cachelib.mk | 14 ++++++++++++++ 5 files changed, 30 insertions(+) create mode 100644 package/python-cachelib/Config.in create mode 100644 package/python-cachelib/python-cachelib.hash create mode 100644 package/python-cachelib/python-cachelib.mk diff --git a/DEVELOPERS b/DEVELOPERS index 3a2797d7ec..d0561a10de 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -728,6 +728,9 @@ F: configs/odroidc2_defconfig F: package/meson-tools/ F: package/odroidc2-firmware/ +N: Daniel Crowe +F: package/python-cachelib/ + N: Daniel J. Leach F: package/dacapo/ diff --git a/package/Config.in b/package/Config.in index 46e8a5c8e3..2d4ef81a2c 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1037,6 +1037,7 @@ menu "External python modules" source "package/python-brotli/Config.in" source "package/python-bsdiff4/Config.in" source "package/python-cached-property/Config.in" + source "package/python-cachelib/Config.in" source "package/python-cachetools/Config.in" source "package/python-can/Config.in" source "package/python-canopen/Config.in" diff --git a/package/python-cachelib/Config.in b/package/python-cachelib/Config.in new file mode 100644 index 0000000000..c17454c4be --- /dev/null +++ b/package/python-cachelib/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_PYTHON_CACHELIB + bool "python-cachelib" + help + A collection of cache libraries in the same API interface. + + https://github.com/pallets-eco/cachelib/ diff --git a/package/python-cachelib/python-cachelib.hash b/package/python-cachelib/python-cachelib.hash new file mode 100644 index 0000000000..6a50350aa1 --- /dev/null +++ b/package/python-cachelib/python-cachelib.hash @@ -0,0 +1,6 @@ +# md5, sha256 from https://pypi.org/pypi/cachelib/json +md5 fc25e9c9165cd5fd42ce282c2ba540fd cachelib-0.13.0.tar.gz +sha256 209d8996e3c57595bee274ff97116d1d73c4980b2fd9a34c7846cd07fd2e1a48 cachelib-0.13.0.tar.gz +# Locally computed sha256 checksums +sha256 cd418120812dc2626281ae027e81b648229d166b5aca7472cecd510038d36e7d LICENSE.rst +sha256 c9362a7258a11c84a8f7e825ccbbb5c425c6fc02368d3aee6494533fb99ba1f4 docs/license.rst diff --git a/package/python-cachelib/python-cachelib.mk b/package/python-cachelib/python-cachelib.mk new file mode 100644 index 0000000000..7361a21f4f --- /dev/null +++ b/package/python-cachelib/python-cachelib.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-cachelib +# +################################################################################ + +PYTHON_CACHELIB_VERSION = 0.13.0 +PYTHON_CACHELIB_SOURCE = cachelib-$(PYTHON_CACHELIB_VERSION).tar.gz +PYTHON_CACHELIB_SITE = https://files.pythonhosted.org/packages/1d/69/0b5c1259e12fbcf5c2abe5934b5c0c1294ec0f845e2b4b2a51a91d79a4fb +PYTHON_CACHELIB_SETUP_TYPE = setuptools +PYTHON_CACHELIB_LICENSE = BSD-3-Clause +PYTHON_CACHELIB_LICENSE_FILES = LICENSE.rst docs/license.rst + +$(eval $(python-package))