fwknop: init script improvements
[feed/packages.git] / lang / python / bcrypt / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=bcrypt
9 PKG_VERSION:=3.1.7
10 PKG_RELEASE:=1
11
12 PYPI_NAME:=$(PKG_NAME)
13 PKG_HASH:=0b0069c752ec14172c5f78208f1863d7ad6755a6fae6fe76ec2c80d13be41e42
14
15 PKG_MAINTAINER:=Daniel Dickinson <cshored@thecshore.com>
16 PKG_LICENSE:=Apache-2.0
17 PKG_LICENSE_FILES:=LICENSE
18
19 PKG_BUILD_DEPENDS:=libffi/host
20 HOST_PYTHON_PACKAGE_BUILD_DEPENDS:="cffi>=1.1"
21 HOST_PYTHON3_PACKAGE_BUILD_DEPENDS:="cffi>=1.1"
22
23 include ../pypi.mk
24 include $(INCLUDE_DIR)/package.mk
25 include ../python-package.mk
26 include ../python3-package.mk
27
28 define Package/bcrypt/Default
29 SECTION:=lang
30 CATEGORY:=Languages
31 SUBMENU:=Python
32 TITLE:=Modern password hashing
33 URL:=https://github.com/pyca/bcrypt/
34 endef
35
36 define Package/python-bcrypt
37 $(call Package/bcrypt/Default)
38 DEPENDS:= \
39 +PACKAGE_python-bcrypt:python \
40 +PACKAGE_python-bcrypt:python-cffi \
41 +PACKAGE_python-bcrypt:python-six
42 VARIANT:=python
43 endef
44
45 define Package/python3-bcrypt
46 $(call Package/bcrypt/Default)
47 DEPENDS:= \
48 +PACKAGE_python3-bcrypt:python3 \
49 +PACKAGE_python3-bcrypt:python3-cffi \
50 +PACKAGE_python3-bcrypt:python3-six
51 VARIANT:=python3
52 endef
53
54 define Package/python-bcrypt/description
55 Good password hashing for your software and your servers.
56 endef
57
58 define Package/python3-bcrypt/description
59 $(call Package/python-bcrypt/description)
60 .
61 (Variant for Python3)
62 endef
63
64 $(eval $(call PyPackage,python-bcrypt))
65 $(eval $(call BuildPackage,python-bcrypt))
66 $(eval $(call BuildPackage,python-bcrypt-src))
67
68 $(eval $(call Py3Package,python3-bcrypt))
69 $(eval $(call BuildPackage,python3-bcrypt))
70 $(eval $(call BuildPackage,python3-bcrypt-src))