python-pyrsistent: bump to 0.20.0
authorAlexandru Ardelean <redacted>
Wed, 1 Apr 2026 11:49:18 +0000 (14:49 +0300)
committerAlexandru Ardelean <redacted>
Wed, 1 Apr 2026 19:37:48 +0000 (22:37 +0300)
Changelog: https://github.com/tobgu/pyrsistent/blob/master/CHANGES.txt
Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-pyrsistent/Makefile
lang/python/python-pyrsistent/test.sh [new file with mode: 0755]

index 5f8294e698c5e0929675ba7a13130362aed26b5d..04650e17c11c312605102d872f30db490965c9ef 100644 (file)
@@ -8,11 +8,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-pyrsistent
-PKG_VERSION:=0.19.3
+PKG_VERSION:=0.20.0
 PKG_RELEASE:=1
 
 PYPI_NAME:=pyrsistent
-PKG_HASH:=1a2994773706bbb4995c31a97bc94f1418314923bd1048c6d964837040376440
+PKG_HASH:=4c48f78f62ab596c679086084d0dd13254ae4f3d6c72a83ffdf5ebdef8f265a4
 
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
 PKG_LICENSE:=MIT
diff --git a/lang/python/python-pyrsistent/test.sh b/lang/python/python-pyrsistent/test.sh
new file mode 100755 (executable)
index 0000000..3a3009d
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+[ "$1" = python3-pyrsistent ] || exit 0
+
+python3 - << 'EOF'
+
+from pyrsistent import pmap, pvector, pset
+
+# Persistent map
+m = pmap({"a": 1, "b": 2})
+m2 = m.set("c", 3)
+assert m["a"] == 1
+assert "c" not in m
+assert m2["c"] == 3
+
+# Persistent vector
+v = pvector([1, 2, 3])
+v2 = v.append(4)
+assert len(v) == 3
+assert len(v2) == 4
+assert v2[3] == 4
+
+# Persistent set
+s = pset([1, 2, 3])
+s2 = s.add(4)
+assert 4 not in s
+assert 4 in s2
+
+EOF
git clone https://git.99rst.org/PROJECT