You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.6 KiB

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