summaryrefslogtreecommitdiff
path: root/lang/python/python-fnv-hash-fast
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2023-11-21 12:34:08 +0800
committerGitHub <noreply@github.com>2023-11-21 12:34:08 +0800
commitf5ebf9fafe8da7178aa5c3303da63d873773ccc7 (patch)
treeb5fa9911d63f1e8da37dec2f0776f65062aa9de9 /lang/python/python-fnv-hash-fast
parent9b130e4b342d12918dbc535d515dbbfc7676bd74 (diff)
parent96ce3b51a40ef1aa98843d6ebf1f6370e87197f8 (diff)
Merge pull request #22625 from ecammit/python_requirements_for_homeassistant
Added python-fnv-hash-fast, python-lru-dict, and python-orjson
Diffstat (limited to 'lang/python/python-fnv-hash-fast')
-rw-r--r--lang/python/python-fnv-hash-fast/Makefile38
1 files changed, 38 insertions, 0 deletions
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 <openwrt@timothyace.com>
+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))