packages/lang/python/python-et_xmlfile/Makefile
Jeffery To 635cb1309c treewide: Use pypi.mk for Python packages
This updates all Python packages that download their source from PyPi to
use pypi.mk.

This will allow future improvements/changes to pypi.mk to affect all
relevant packages.

This also makes it easier for future Python packages to start using
pypi.mk, when it's clear how it is used in existing packages.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-30 23:16:18 +08:00

65 lines
1.7 KiB
Makefile

#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=python-et_xmlfile
PKG_VERSION:=1.0.1
PKG_RELEASE:=1
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Eneas U de Queiroz <cote2004-github@yahoo.com>
PKG_LICENSE:=MIT
PYPI_NAME:=et_xmlfile
PKG_HASH:=614d9722d572f6246302c4491846d2c393c199cfa4edc9af593437691683335b
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python-package.mk
include ../python3-package.mk
define Package/python-et_xmlfile/Default
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=Low memory library for creating large XML files.
URL:=https://bitbucket.org/openpyxl/et_xmlfile
endef
define Package/python-et_xmlfile
$(call Package/python-et_xmlfile/Default)
DEPENDS:= \
+PACKAGE_python-et_xmlfile:python-light \
+PACKAGE_python-et_xmlfile:python-lxml
VARIANT:=python
endef
define Package/python3-et_xmlfile
$(call Package/python-et_xmlfile/Default)
DEPENDS:= \
+python3-light \
+python3-lxml
VARIANT:=python3
endef
define Package/python-et_xmlfile/description
An implementation of lxml.xmlfile for the standard library.
It is based upon the xmlfile module from lxml with the aim of
allowing code to be developed that will work with both libraries.
endef
define Package/python3-et_xmlfile/description
$(call Package/python-et_xmlfile/description)
.
(Variant for Python3)
endef
$(eval $(call PyPackage,python-et_xmlfile))
$(eval $(call BuildPackage,python-et_xmlfile))
$(eval $(call BuildPackage,python-et_xmlfile-src))
$(eval $(call Py3Package,python3-et_xmlfile))
$(eval $(call BuildPackage,python3-et_xmlfile))
$(eval $(call BuildPackage,python3-et_xmlfile-src))