b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2017 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-lxml |
| 11 | PKG_VERSION:=5.2.2 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PYPI_NAME:=lxml |
| 15 | PKG_HASH:=bb2dc4898180bea79863d5487e5f9c7c34297414bad54bcd0f0852aee9cfdb87 |
| 16 | |
| 17 | PKG_LICENSE:=BSD-3-Clause |
| 18 | PKG_LICENSE_FILES:=LICENSES.txt |
| 19 | PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com> |
| 20 | PKG_CPE_ID:=cpe:/a:lxml:lxml |
| 21 | |
| 22 | PKG_BUILD_DEPENDS:=python-cython/host |
| 23 | |
| 24 | include ../pypi.mk |
| 25 | include $(INCLUDE_DIR)/package.mk |
| 26 | include ../python3-package.mk |
| 27 | |
| 28 | define Package/python3-lxml |
| 29 | SECTION:=lang |
| 30 | CATEGORY:=Languages |
| 31 | SUBMENU:=Python |
| 32 | TITLE:=Pythonic XML processing library |
| 33 | URL:=https://lxml.de |
| 34 | DEPENDS:=+libxml2 +libxslt +libexslt +python3-light |
| 35 | endef |
| 36 | |
| 37 | define Package/python3-lxml/description |
| 38 | lxml is a Pythonic, mature binding for the libxml2 and libxslt |
| 39 | libraries. It provides safe and convenient access to these libraries |
| 40 | using the ElementTree API. |
| 41 | |
| 42 | It extends the ElementTree API significantly to offer support for |
| 43 | XPath, RelaxNG, XML Schema, XSLT, C14N and much more. |
| 44 | endef |
| 45 | |
| 46 | $(eval $(call Py3Package,python3-lxml)) |
| 47 | $(eval $(call BuildPackage,python3-lxml)) |
| 48 | $(eval $(call BuildPackage,python3-lxml-src)) |