Merge pull request #8361 from jandelgado/add_udptunnel_package
[feed/packages.git] / lang / python / python-attrs / Makefile
1 #
2 # Copyright (C) 2016-2018 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=python-attrs
11 PKG_VERSION:=19.1.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=attrs-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/a/attrs
16 PKG_HASH:=f0b870f674851ecbfbbbd364d6b5cbdff9dcedbc7f3f5e18a6891057f21fe399
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-attrs-$(PKG_VERSION)
19
20 PKG_LICENSE:=MIT
21 PKG_LICENSE_FILES:=LICENSE
22 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
23
24 include $(INCLUDE_DIR)/package.mk
25 include ../python-package.mk
26 include ../python3-package.mk
27
28 PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
29
30 define Package/python-attrs/Default
31 SECTION:=lang
32 CATEGORY:=Languages
33 SUBMENU:=Python
34 TITLE:=Classes Without Boilerplate
35 URL:=https://www.attrs.org/
36 endef
37
38 define Package/python-attrs
39 $(call Package/python-attrs/Default)
40 DEPENDS:=+PACKAGE_python-attrs:python-light
41 VARIANT:=python
42 endef
43
44 define Package/python3-attrs
45 $(call Package/python-attrs/Default)
46 DEPENDS:=+PACKAGE_python3-attrs:python3-light
47 VARIANT:=python3
48 endef
49
50 define Package/python-attrs/description
51 attrs is an MIT-licensed Python package with class decorators that ease
52 the chores of implementing the most common attribute-related object
53 protocols.
54 endef
55
56 define Package/python3-attrs/description
57 $(call Package/python-attrs/description)
58 .
59 (Variant for Python3)
60 endef
61
62 $(eval $(call PyPackage,python-attrs))
63 $(eval $(call BuildPackage,python-attrs))
64 $(eval $(call BuildPackage,python-attrs-src))
65
66 $(eval $(call Py3Package,python3-attrs))
67 $(eval $(call BuildPackage,python3-attrs))
68 $(eval $(call BuildPackage,python3-attrs-src))