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.

62 lines
1.7 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:= \
  25. +PACKAGE_python-s3transfer:python \
  26. +PACKAGE_python-s3transfer:python-botocore \
  27. +PACKAGE_python-s3transfer:python-futures
  28. VARIANT:=python
  29. endef
  30. define Package/python3-s3transfer
  31. $(call Package/python-s3transfer/Default)
  32. DEPENDS:= \
  33. +PACKAGE_python3-s3transfer:python3 \
  34. +PACKAGE_python3-s3transfer:python3-botocore
  35. VARIANT:=python3
  36. endef
  37. define Package/python-s3transfer/description
  38. S3transfer is a Python library for managing Amazon S3 transfers.
  39. endef
  40. define Package/python3-s3transfer/description
  41. $(call Package/python-s3transfer/description)
  42. .
  43. (Variant for Python3)
  44. endef
  45. $(eval $(call PyPackage,python-s3transfer))
  46. $(eval $(call BuildPackage,python-s3transfer))
  47. $(eval $(call BuildPackage,python-s3transfer-src))
  48. $(eval $(call Py3Package,python3-s3transfer))
  49. $(eval $(call BuildPackage,python3-s3transfer))
  50. $(eval $(call BuildPackage,python3-s3transfer-src))