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.

56 lines
1.4 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 ../python-package.mk
  12. include ../python3-package.mk
  13. define Package/python-rsa/Default
  14. SUBMENU:=Python
  15. SECTION:=lang
  16. CATEGORY:=Languages
  17. TITLE:=rsa
  18. URL:=https://stuvel.eu/rsa
  19. endef
  20. define Package/python-rsa
  21. $(call Package/python-rsa/Default)
  22. DEPENDS:=+PACKAGE_python-rsa:python +PACKAGE_python-rsa:python-pyasn1
  23. VARIANT:=python
  24. endef
  25. define Package/python3-rsa
  26. $(call Package/python-rsa/Default)
  27. DEPENDS:=+PACKAGE_python3-rsa:python3 +PACKAGE_python3-rsa:python3-pyasn1
  28. VARIANT:=python3
  29. endef
  30. define Package/python-rsa/description
  31. Is a pure-Python RSA implementation. It supports encryption and decryption,
  32. signing and verifying signatures, and key generation according to PKCS#1 version 1.5.
  33. It can be used as a Python library as well as on the commandline.
  34. endef
  35. define Package/python3-rsa/description
  36. $(call Package/python-rsa/description)
  37. .
  38. (Variant for Python3)
  39. endef
  40. $(eval $(call PyPackage,python-rsa))
  41. $(eval $(call BuildPackage,python-rsa))
  42. $(eval $(call BuildPackage,python-rsa-src))
  43. $(eval $(call Py3Package,python3-rsa))
  44. $(eval $(call BuildPackage,python3-rsa))
  45. $(eval $(call BuildPackage,python3-rsa-src))