python-pyparsing: bump to 3.3.2
authorAlexandru Ardelean <redacted>
Wed, 1 Apr 2026 09:37:31 +0000 (12:37 +0300)
committerAlexandru Ardelean <redacted>
Fri, 3 Apr 2026 06:38:08 +0000 (09:38 +0300)
pyparsing also requires the 'unittest' module from the Python3 package.

Changelog: https://github.com/pyparsing/pyparsing/blob/master/CHANGES
Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-pyparsing/Makefile
lang/python/python-pyparsing/test.sh [new file with mode: 0755]

index f5bedf7c201f31329289d02a1b7dbacdc09d5810..88834730634d14547f636cbe6e59f3e9b8f88da6 100644 (file)
@@ -9,11 +9,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-pyparsing
-PKG_VERSION:=3.1.1
+PKG_VERSION:=3.3.2
 PKG_RELEASE:=1
 
 PYPI_NAME:=pyparsing
-PKG_HASH:=ede28a1a32462f5a9705e07aea48001a08f7cf81a021585011deba701581a0db
+PKG_HASH:=c777f4d763f140633dcb6d8a3eda953bf7a214dc4eff598413c070bcdc117cbc
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=MIT
@@ -31,7 +31,7 @@ define Package/python3-pyparsing
   SUBMENU:=Python
   TITLE:=Define and execute parsing grammars
   URL:=https://github.com/pyparsing/pyparsing/
-  DEPENDS:=+python3-light
+  DEPENDS:=+python3-light +python3-unittest
 endef
 
 define Package/python3-pyparsing/description
diff --git a/lang/python/python-pyparsing/test.sh b/lang/python/python-pyparsing/test.sh
new file mode 100755 (executable)
index 0000000..de1614a
--- /dev/null
@@ -0,0 +1,30 @@
+#!/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
git clone https://git.99rst.org/PROJECT