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.

65 lines
2.0 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.1
  6. PKG_RELEASE:=1
  7. PKG_LICENSE:=BSD-3-Clause
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/passlib
  10. PKG_HASH:=3d948f64138c25633613f303bcc471126eae67c04d5e3f6b7b8ce6242f8653e0
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-passlib-$(PKG_VERSION)
  12. include $(INCLUDE_DIR)/package.mk
  13. include ../python-package.mk
  14. include ../python3-package.mk
  15. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  16. define Package/passlib/Default
  17. SUBMENU:=Python
  18. SECTION:=lang
  19. CATEGORY:=Languages
  20. MAINTAINER:=Daniel Dickinson <cshored@thecshore.com>
  21. TITLE:=Comprehensive password hashing framework
  22. URL:=https://bitbucket.org/ecollins/passlib
  23. endef
  24. define Package/python-passlib
  25. $(call Package/passlib/Default)
  26. DEPENDS:=+PACKAGE_python-passlib:python +PACKAGE_python-passlib:python-dateutil
  27. VARIANT:=python
  28. endef
  29. define Package/python3-passlib
  30. $(call Package/passlib/Default)
  31. DEPENDS:=+PACKAGE_python3-passlib:python3 +PACKAGE_python3-passlib:python3-dateutil
  32. VARIANT:=python3
  33. endef
  34. define Package/python-passlib/description
  35. Passlib is a password hashing library for Python 2 & 3, which provides
  36. cross-platform implementations of over 30 password hashing algorithms,
  37. as well as a framework for managing existing password hashes. Its
  38. designed to be useful for a wide range of tasks, from verifying a hash
  39. found in /etc/shadow, to providing full-strength password hashing for
  40. multi-user applications.
  41. endef
  42. define Package/python3-passlib/description
  43. $(call Package/python-passlib/description)
  44. .
  45. (Variant for Python3)
  46. endef
  47. $(eval $(call PyPackage,python-passlib))
  48. $(eval $(call Py3Package,python3-passlib))
  49. $(eval $(call BuildPackage,python-passlib))
  50. $(eval $(call BuildPackage,python-passlib-src))
  51. $(eval $(call BuildPackage,python3-passlib))
  52. $(eval $(call BuildPackage,python3-passlib-src))