diff --git a/lang/python/python-pyparsing/Makefile b/lang/python/python-pyparsing/Makefile deleted file mode 100644 index 8883473063..0000000000 --- a/lang/python/python-pyparsing/Makefile +++ /dev/null @@ -1,47 +0,0 @@ -# -# Copyright (C) 2019-2020 CZ.NIC z.s.p.o. (http://www.nic.cz/) -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# -# - -include $(TOPDIR)/rules.mk - -PKG_NAME:=python-pyparsing -PKG_VERSION:=3.3.2 -PKG_RELEASE:=1 - -PYPI_NAME:=pyparsing -PKG_HASH:=c777f4d763f140633dcb6d8a3eda953bf7a214dc4eff598413c070bcdc117cbc - -PKG_MAINTAINER:=Alexandru Ardelean -PKG_LICENSE:=MIT -PKG_LICENSE_FILES:=LICENSE - -PKG_BUILD_DEPENDS:=python-flit-core/host - -include ../pypi.mk -include $(INCLUDE_DIR)/package.mk -include ../python3-package.mk - -define Package/python3-pyparsing - SECTION:=lang - CATEGORY:=Languages - SUBMENU:=Python - TITLE:=Define and execute parsing grammars - URL:=https://github.com/pyparsing/pyparsing/ - DEPENDS:=+python3-light +python3-unittest -endef - -define Package/python3-pyparsing/description - The pyparsing module is an alternative approach to creating - and executing simple grammars, vs. the traditional lex/yacc - approach, or the use of regular expressions. - The pyparsing module provides a library of classes that - client code uses to construct the grammar directly in Python code. -endef - -$(eval $(call Py3Package,python3-pyparsing)) -$(eval $(call BuildPackage,python3-pyparsing)) -$(eval $(call BuildPackage,python3-pyparsing-src)) diff --git a/lang/python/python-pyparsing/test.sh b/lang/python/python-pyparsing/test.sh deleted file mode 100755 index de1614ae9e..0000000000 --- a/lang/python/python-pyparsing/test.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -[ "$1" = python3-pyparsing ] || exit 0 - -python3 - << 'EOF' - -import pyparsing as pp - -# Basic word and integer parsing -word = pp.Word(pp.alphas) -integer = pp.Word(pp.nums) - -result = word.parse_string("hello") -assert result[0] == "hello" - -result = integer.parse_string("42") -assert result[0] == "42" - -# Combined expression -greeting = word + pp.Literal(",") + word -result = greeting.parse_string("Hello, World") -assert result[0] == "Hello" -assert result[2] == "World" - -# OneOf -colors = pp.one_of("red green blue") -result = colors.parse_string("green") -assert result[0] == "green" - -EOF