b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2019-2020 CZ.NIC z.s.p.o. (http://www.nic.cz/) |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | # |
| 8 | |
| 9 | include $(TOPDIR)/rules.mk |
| 10 | |
| 11 | PKG_NAME:=python-pyparsing |
| 12 | PKG_VERSION:=3.1.1 |
| 13 | PKG_RELEASE:=1 |
| 14 | |
| 15 | PYPI_NAME:=pyparsing |
| 16 | PKG_HASH:=ede28a1a32462f5a9705e07aea48001a08f7cf81a021585011deba701581a0db |
| 17 | |
| 18 | PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com> |
| 19 | PKG_LICENSE:=MIT |
| 20 | PKG_LICENSE_FILES:=LICENSE |
| 21 | |
| 22 | PKG_BUILD_DEPENDS:=python-flit-core/host |
| 23 | |
| 24 | include ../pypi.mk |
| 25 | include $(INCLUDE_DIR)/package.mk |
| 26 | include ../python3-package.mk |
| 27 | |
| 28 | define Package/python3-pyparsing |
| 29 | SECTION:=lang |
| 30 | CATEGORY:=Languages |
| 31 | SUBMENU:=Python |
| 32 | TITLE:=Define and execute parsing grammars |
| 33 | URL:=https://github.com/pyparsing/pyparsing/ |
| 34 | DEPENDS:=+python3-light |
| 35 | endef |
| 36 | |
| 37 | define Package/python3-pyparsing/description |
| 38 | The pyparsing module is an alternative approach to creating |
| 39 | and executing simple grammars, vs. the traditional lex/yacc |
| 40 | approach, or the use of regular expressions. |
| 41 | The pyparsing module provides a library of classes that |
| 42 | client code uses to construct the grammar directly in Python code. |
| 43 | endef |
| 44 | |
| 45 | $(eval $(call Py3Package,python3-pyparsing)) |
| 46 | $(eval $(call BuildPackage,python3-pyparsing)) |
| 47 | $(eval $(call BuildPackage,python3-pyparsing-src)) |