python-pyrsistent: bump to 0.20.0

Changelog: https://github.com/tobgu/pyrsistent/blob/master/CHANGES.txt
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
Alexandru Ardelean
2026-04-01 14:49:18 +03:00
committed by Alexandru Ardelean
parent 0219210841
commit df1aacbfc7
2 changed files with 31 additions and 2 deletions

View 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

View File

@@ -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