2016-03-17 18:02:26 +00:00
|
|
|
#
|
2018-01-10 09:35:11 +00:00
|
|
|
# Copyright (C) 2016-2018 OpenWrt.org
|
2016-03-17 18:02:26 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2018-01-10 09:35:11 +00:00
|
|
|
PKG_NAME:=python-attrs
|
2019-10-20 20:43:23 +00:00
|
|
|
PKG_VERSION:=19.3.0
|
2018-06-24 18:29:34 +00:00
|
|
|
PKG_RELEASE:=1
|
2016-03-17 18:02:26 +00:00
|
|
|
|
2019-10-20 19:03:12 +00:00
|
|
|
PYPI_NAME:=attrs
|
2019-10-20 20:43:23 +00:00
|
|
|
PKG_HASH:=f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72
|
2018-01-10 09:35:11 +00:00
|
|
|
|
2016-03-17 18:02:26 +00:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
|
|
|
|
2019-10-20 19:03:12 +00:00
|
|
|
include ../pypi.mk
|
2016-03-17 18:02:26 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2018-01-10 07:56:52 +00:00
|
|
|
include ../python-package.mk
|
|
|
|
include ../python3-package.mk
|
2018-01-10 09:35:11 +00:00
|
|
|
|
|
|
|
define Package/python-attrs/Default
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
SUBMENU:=Python
|
2019-02-20 07:19:26 +00:00
|
|
|
TITLE:=Classes Without Boilerplate
|
2019-03-22 13:48:27 +00:00
|
|
|
URL:=https://www.attrs.org/
|
2018-01-10 09:35:11 +00:00
|
|
|
endef
|
2016-03-17 18:02:26 +00:00
|
|
|
|
|
|
|
define Package/python-attrs
|
2018-01-10 09:35:11 +00:00
|
|
|
$(call Package/python-attrs/Default)
|
|
|
|
DEPENDS:=+PACKAGE_python-attrs:python-light
|
|
|
|
VARIANT:=python
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/python3-attrs
|
|
|
|
$(call Package/python-attrs/Default)
|
|
|
|
DEPENDS:=+PACKAGE_python3-attrs:python3-light
|
|
|
|
VARIANT:=python3
|
2016-03-17 18:02:26 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/python-attrs/description
|
|
|
|
attrs is an MIT-licensed Python package with class decorators that ease
|
|
|
|
the chores of implementing the most common attribute-related object
|
|
|
|
protocols.
|
|
|
|
endef
|
|
|
|
|
2018-01-10 09:35:11 +00:00
|
|
|
define Package/python3-attrs/description
|
|
|
|
$(call Package/python-attrs/description)
|
|
|
|
.
|
|
|
|
(Variant for Python3)
|
2016-03-17 18:02:26 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call PyPackage,python-attrs))
|
|
|
|
$(eval $(call BuildPackage,python-attrs))
|
2018-01-14 14:38:54 +00:00
|
|
|
$(eval $(call BuildPackage,python-attrs-src))
|
2018-01-10 09:35:11 +00:00
|
|
|
|
|
|
|
$(eval $(call Py3Package,python3-attrs))
|
|
|
|
$(eval $(call BuildPackage,python3-attrs))
|
2018-01-14 14:38:54 +00:00
|
|
|
$(eval $(call BuildPackage,python3-attrs-src))
|