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.

57 lines
1.6 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=s3transfer
  3. PKG_VERSION:=0.2.0
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/s/s3transfer
  7. PKG_HASH:=f23d5cb7d862b104401d9021fc82e5fa0e0cf57b7660a1331425aab0c691d021
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-s3transfer-$(PKG_VERSION)
  9. PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
  10. PKG_LICENSE:=MIT
  11. include $(INCLUDE_DIR)/package.mk
  12. include ../python-package.mk
  13. include ../python3-package.mk
  14. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  15. define Package/python-s3transfer/Default
  16. SECTION:=lang
  17. CATEGORY:=Languages
  18. SUBMENU:=Python
  19. TITLE:=s3transfer
  20. URL:=https://github.com/boto/s3transfer
  21. endef
  22. define Package/python-s3transfer
  23. $(call Package/python-s3transfer/Default)
  24. DEPENDS:=+python +python-botocore +python-futures
  25. VARIANT:=python
  26. endef
  27. define Package/python3-s3transfer
  28. $(call Package/python-s3transfer/Default)
  29. DEPENDS:=+python3 +python3-botocore
  30. VARIANT:=python3
  31. endef
  32. define Package/python-s3transfer/description
  33. S3transfer is a Python library for managing Amazon S3 transfers.
  34. endef
  35. define Package/python3-s3transfer/description
  36. $(call Package/python-s3transfer/description)
  37. .
  38. (Variant for Python3)
  39. endef
  40. $(eval $(call PyPackage,python-s3transfer))
  41. $(eval $(call BuildPackage,python-s3transfer))
  42. $(eval $(call BuildPackage,python-s3transfer-src))
  43. $(eval $(call Py3Package,python3-s3transfer))
  44. $(eval $(call BuildPackage,python3-s3transfer))
  45. $(eval $(call BuildPackage,python3-s3transfer-src))