blob: b4758598ecaea499d6a67790929007a1a02b8f12 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001include $(TOPDIR)/rules.mk
2
3PKG_NAME:=python-fnv-hash-fast
4PKG_VERSION:=0.5.0
5PKG_RELEASE:=1
6
7PYPI_NAME:=fnv-hash-fast
8PYPI_SOURCE_NAME:=fnv_hash_fast
9PKG_HASH:=a84d658952776a186418f4158fc8e55ff3c576ac32cc9ef7f8077efdf2d0b89f
10
11PKG_MAINTAINER:=Timothy Ace <openwrt@timothyace.com>
12PKG_LICENSE:=MIT
13PKG_LICENSE_FILES:=LICENSE
14
15PKG_BUILD_DEPENDS:=python-cython/host python-poetry-core/host
16
17include ../pypi.mk
18include $(INCLUDE_DIR)/package.mk
19include ../python3-package.mk
20
21define Package/python3-fnv-hash-fast
22 SECTION:=lang
23 CATEGORY:=Languages
24 SUBMENU:=Python
25 TITLE:=A fast version of fnv1a
26 URL:=https://github.com/bdraco/fnv-hash-fast
27 DEPENDS:=+libstdcpp +python3-light +python3-fnvhash
28endef
29
30define Package/python3-fnv-hash-fast/description
31A fast version of fnv1a. This library will use a CPP implementation of fnv1a
32(32) if cython is available, and will fallback to pure python from the fnvhash
33package if it is not.
34endef
35
36$(eval $(call Py3Package,python3-fnv-hash-fast))
37$(eval $(call BuildPackage,python3-fnv-hash-fast))
38$(eval $(call BuildPackage,python3-fnv-hash-fast-src))