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