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.

61 lines
1.7 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:=passlib
  5. PKG_VERSION:=1.7.2
  6. PKG_RELEASE:=1
  7. PKG_LICENSE:=BSD-3-Clause
  8. PYPI_NAME:=$(PKG_NAME)
  9. PKG_HASH:=8d666cef936198bc2ab47ee9b0410c94adf2ba798e5a84bf220be079ae7ab6a8
  10. include ../pypi.mk
  11. include $(INCLUDE_DIR)/package.mk
  12. include ../python-package.mk
  13. include ../python3-package.mk
  14. define Package/passlib/Default
  15. SUBMENU:=Python
  16. SECTION:=lang
  17. CATEGORY:=Languages
  18. TITLE:=Comprehensive password hashing framework
  19. URL:=https://bitbucket.org/ecollins/passlib
  20. endef
  21. define Package/python-passlib
  22. $(call Package/passlib/Default)
  23. DEPENDS:=+PACKAGE_python-passlib:python +PACKAGE_python-passlib:python-dateutil
  24. VARIANT:=python
  25. endef
  26. define Package/python3-passlib
  27. $(call Package/passlib/Default)
  28. DEPENDS:=+PACKAGE_python3-passlib:python3 +PACKAGE_python3-passlib:python3-dateutil
  29. VARIANT:=python3
  30. endef
  31. define Package/python-passlib/description
  32. Passlib is a password hashing library for Python 2 & 3, which provides
  33. cross-platform implementations of over 30 password hashing algorithms,
  34. as well as a framework for managing existing password hashes. Its
  35. designed to be useful for a wide range of tasks, from verifying a hash
  36. found in /etc/shadow, to providing full-strength password hashing for
  37. multi-user applications.
  38. endef
  39. define Package/python3-passlib/description
  40. $(call Package/python-passlib/description)
  41. .
  42. (Variant for Python3)
  43. endef
  44. $(eval $(call PyPackage,python-passlib))
  45. $(eval $(call Py3Package,python3-passlib))
  46. $(eval $(call BuildPackage,python-passlib))
  47. $(eval $(call BuildPackage,python-passlib-src))
  48. $(eval $(call BuildPackage,python3-passlib))
  49. $(eval $(call BuildPackage,python3-passlib-src))