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.

41 lines
1.0 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=rsa
  3. PKG_VERSION:=4.0
  4. PKG_RELEASE:=1
  5. PYPI_NAME:=$(PKG_NAME)
  6. PKG_HASH:=1a836406405730121ae9823e19c6e806c62bbad73f890574fff50efa4122c487
  7. PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
  8. PKG_LICENSE:=MIT
  9. include ../pypi.mk
  10. include $(INCLUDE_DIR)/package.mk
  11. include ../python3-package.mk
  12. define Package/python-rsa/Default
  13. SUBMENU:=Python
  14. SECTION:=lang
  15. CATEGORY:=Languages
  16. TITLE:=rsa
  17. URL:=https://stuvel.eu/rsa
  18. endef
  19. define Package/python3-rsa
  20. $(call Package/python-rsa/Default)
  21. DEPENDS:=+PACKAGE_python3-rsa:python3 +PACKAGE_python3-rsa:python3-pyasn1
  22. VARIANT:=python3
  23. endef
  24. define Package/python3-rsa/description
  25. Is a pure-Python RSA implementation. It supports encryption and decryption,
  26. signing and verifying signatures, and key generation according to PKCS#1 version 1.5.
  27. It can be used as a Python library as well as on the commandline.
  28. .
  29. (Variant for Python3)
  30. endef
  31. $(eval $(call Py3Package,python3-rsa))
  32. $(eval $(call BuildPackage,python3-rsa))
  33. $(eval $(call BuildPackage,python3-rsa-src))