From a26395dce39e9b3b3d77b70bd84c2383ac566c8f Mon Sep 17 00:00:00 2001 From: "Timothy M. Ace" Date: Thu, 16 Nov 2023 09:35:15 -0500 Subject: [PATCH 1/4] python-fnvhash: Added for v0.1.0 Signed-off-by: Timothy M. Ace --- lang/python/python-fnvhash/Makefile | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lang/python/python-fnvhash/Makefile diff --git a/lang/python/python-fnvhash/Makefile b/lang/python/python-fnvhash/Makefile new file mode 100644 index 000000000..b0c2316d2 --- /dev/null +++ b/lang/python/python-fnvhash/Makefile @@ -0,0 +1,33 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-fnvhash +PKG_VERSION:=0.1.0 +PKG_RELEASE:=1 + +PYPI_NAME:=fnvhash +PKG_HASH:=3e82d505054f9f3987b2b5b649f7e7b6f48349f6af8a1b8e4d66779699c85a8e + +PKG_MAINTAINER:=Timothy Ace +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE + +include ../pypi.mk +include $(INCLUDE_DIR)/package.mk +include ../python3-package.mk + +define Package/python3-fnvhash + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + TITLE:=Pure Python FNV hash implementation + URL:=https://github.com/znerol/py-fnvhash + DEPENDS:=+python3-light +endef + +define Package/python3-fnvhash/description +Pure Python implementation of the FNV hash family with 100% test coverage. +endef + +$(eval $(call Py3Package,python3-fnvhash)) +$(eval $(call BuildPackage,python3-fnvhash)) +$(eval $(call BuildPackage,python3-fnvhash-src)) From f0f38827376fe24f2e5745c5952f3abe598598b7 Mon Sep 17 00:00:00 2001 From: "Timothy M. Ace" Date: Thu, 16 Nov 2023 09:36:10 -0500 Subject: [PATCH 2/4] python-fnv-hash-fast: Added for v0.5.0 Signed-off-by: Timothy M. Ace --- lang/python/python-fnv-hash-fast/Makefile | 38 +++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 lang/python/python-fnv-hash-fast/Makefile diff --git a/lang/python/python-fnv-hash-fast/Makefile b/lang/python/python-fnv-hash-fast/Makefile new file mode 100644 index 000000000..b4758598e --- /dev/null +++ b/lang/python/python-fnv-hash-fast/Makefile @@ -0,0 +1,38 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-fnv-hash-fast +PKG_VERSION:=0.5.0 +PKG_RELEASE:=1 + +PYPI_NAME:=fnv-hash-fast +PYPI_SOURCE_NAME:=fnv_hash_fast +PKG_HASH:=a84d658952776a186418f4158fc8e55ff3c576ac32cc9ef7f8077efdf2d0b89f + +PKG_MAINTAINER:=Timothy Ace +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE + +PKG_BUILD_DEPENDS:=python-cython/host python-poetry-core/host + +include ../pypi.mk +include $(INCLUDE_DIR)/package.mk +include ../python3-package.mk + +define Package/python3-fnv-hash-fast + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + TITLE:=A fast version of fnv1a + URL:=https://github.com/bdraco/fnv-hash-fast + DEPENDS:=+libstdcpp +python3-light +python3-fnvhash +endef + +define Package/python3-fnv-hash-fast/description +A fast version of fnv1a. This library will use a CPP implementation of fnv1a +(32) if cython is available, and will fallback to pure python from the fnvhash +package if it is not. +endef + +$(eval $(call Py3Package,python3-fnv-hash-fast)) +$(eval $(call BuildPackage,python3-fnv-hash-fast)) +$(eval $(call BuildPackage,python3-fnv-hash-fast-src)) From cbae8db987d8abc5af3da7b3c1901650b14012b3 Mon Sep 17 00:00:00 2001 From: "Timothy M. Ace" Date: Thu, 16 Nov 2023 09:36:43 -0500 Subject: [PATCH 3/4] python-lru-dict: Added for v1.3.0 Signed-off-by: Timothy M. Ace --- lang/python/python-lru-dict/Makefile | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 lang/python/python-lru-dict/Makefile diff --git a/lang/python/python-lru-dict/Makefile b/lang/python/python-lru-dict/Makefile new file mode 100644 index 000000000..a5171d6e0 --- /dev/null +++ b/lang/python/python-lru-dict/Makefile @@ -0,0 +1,37 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-lru-dict +PKG_VERSION:=1.3.0 +PKG_RELEASE:=1 + +PYPI_NAME:=lru-dict +PKG_HASH:=54fd1966d6bd1fcde781596cb86068214edeebff1db13a2cea11079e3fd07b6b + +PKG_MAINTAINER:=Timothy Ace +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE + +include ../pypi.mk +include $(INCLUDE_DIR)/package.mk +include ../python3-package.mk + +define Package/python3-lru-dict + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + TITLE:=An Dict like LRU container + URL:=https://github.com/amitdev/lru-dict + DEPENDS:=+python3-light +endef + +define Package/python3-lru-dict/description +A fixed size dict like container which evicts Least Recently Used (LRU) items +once size limit is exceeded. There are many python implementations available +which does similar things. This is a fast and efficient C implementation. LRU +maximum capacity can be modified at run-time. If you are looking for pure +python version, look elsewhere. +endef + +$(eval $(call Py3Package,python3-lru-dict)) +$(eval $(call BuildPackage,python3-lru-dict)) +$(eval $(call BuildPackage,python3-lru-dict-src)) From 96ce3b51a40ef1aa98843d6ebf1f6370e87197f8 Mon Sep 17 00:00:00 2001 From: "Timothy M. Ace" Date: Thu, 16 Nov 2023 09:37:05 -0500 Subject: [PATCH 4/4] python-orjson: Added for v3.9.10 Signed-off-by: Timothy M. Ace --- lang/python/python-orjson/Makefile | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 lang/python/python-orjson/Makefile diff --git a/lang/python/python-orjson/Makefile b/lang/python/python-orjson/Makefile new file mode 100644 index 000000000..39ef2cf52 --- /dev/null +++ b/lang/python/python-orjson/Makefile @@ -0,0 +1,37 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-orjson +PKG_VERSION:=3.9.10 +PKG_RELEASE:=1 + +PYPI_NAME:=orjson +PKG_HASH:=9ebbdbd6a046c304b1845e96fbcc5559cd296b4dfd3ad2509e33c4d9ce07d6a1 + +PKG_MAINTAINER:=Timothy Ace +PKG_LICENSE:=Apache-2.0 MIT +PKG_LICENSE_FILES:=LICENSE-APACHE LICENSE-MIT + +PKG_BUILD_DEPENDS:=python-maturin/host + +include ../pypi.mk +include $(INCLUDE_DIR)/package.mk +include ../python3-package.mk + +define Package/python3-orjson + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + TITLE:=Fast, correct Python JSON library + URL:=https://github.com/ijl/orjson + DEPENDS:= \ + +python3-light \ + $(RUST_ARCH_DEPENDS) +endef + +define Package/python3-orjson/description +Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy +endef + +$(eval $(call Py3Package,python3-orjson)) +$(eval $(call BuildPackage,python3-orjson)) +$(eval $(call BuildPackage,python3-orjson-src))