summaryrefslogtreecommitdiffstats
path: root/lang/python/python-fnv-hash-fast/Makefile
blob: 8bee79bc25438c6c43e14e0fb59d39982e4ea413 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
include $(TOPDIR)/rules.mk

PKG_NAME:=python-fnv-hash-fast
PKG_VERSION:=2.0.2
PKG_RELEASE:=1

PYPI_NAME:=fnv-hash-fast
PYPI_SOURCE_NAME:=fnv_hash_fast
PKG_HASH:=8d5f6ac760a7ca091ef9d085b22b12c76caa8fa2897de81cee58f50269c0eb65

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))