python-fnv-hash-fast: Added for v0.5.0
[feed/packages.git] / lang / python / python-fnv-hash-fast / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=python-fnv-hash-fast
4 PKG_VERSION:=0.5.0
5 PKG_RELEASE:=1
6
7 PYPI_NAME:=fnv-hash-fast
8 PYPI_SOURCE_NAME:=fnv_hash_fast
9 PKG_HASH:=a84d658952776a186418f4158fc8e55ff3c576ac32cc9ef7f8077efdf2d0b89f
10
11 PKG_MAINTAINER:=Timothy Ace <openwrt@timothyace.com>
12 PKG_LICENSE:=MIT
13 PKG_LICENSE_FILES:=LICENSE
14
15 PKG_BUILD_DEPENDS:=python-cython/host python-poetry-core/host
16
17 include ../pypi.mk
18 include $(INCLUDE_DIR)/package.mk
19 include ../python3-package.mk
20
21 define 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
28 endef
29
30 define Package/python3-fnv-hash-fast/description
31 A 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
33 package if it is not.
34 endef
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))