aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>2025-06-03 17:35:06 +0000
committerJesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>2025-06-03 20:32:48 +0000
commit6b35562463c0d51b2509344c18dce653c9750196 (patch)
tree2287206a82e9d6639e6e69fe93d18d293bb8005e
parent2dd0ac538f4031d21f9c81ff9bc3b42cb2c0f93a (diff)
devel/py-collections-extended: New port: Extra Python Collections (multisets and setlists)
collections_extended is a pure Python module with no dependencies providing extra collections. The new collections include bags AKA multisets, setlists AKA unique lists or ordered sets, a bijection, a RangeMap which is a mapping from ranges to values, and an IndexedDict class. There are also frozen (hashable) varieties of bags and setlists. PR: 287126 Approved by: acm (mentor)
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-collections-extended/Makefile20
-rw-r--r--devel/py-collections-extended/distinfo3
-rw-r--r--devel/py-collections-extended/pkg-descr6
4 files changed, 30 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 68d704bba160..1bbf41f48977 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4692,6 +4692,7 @@
SUBDIR += py-cobble
SUBDIR += py-codegen
SUBDIR += py-cog
+ SUBDIR += py-collections-extended
SUBDIR += py-colorama
SUBDIR += py-colored-traceback
SUBDIR += py-coloredlogs
diff --git a/devel/py-collections-extended/Makefile b/devel/py-collections-extended/Makefile
new file mode 100644
index 000000000000..78da15731f28
--- /dev/null
+++ b/devel/py-collections-extended/Makefile
@@ -0,0 +1,20 @@
+PORTNAME= collections-extended
+DISTVERSION= 2.0.2
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= dtxdf@FreeBSD.org
+COMMENT= Extra Python Collections (multisets and setlists)
+WWW= https://pypi.org/project/${PORTNAME} \
+ https://github.com/mlenzen/${PORTNAME}
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-collections-extended/distinfo b/devel/py-collections-extended/distinfo
new file mode 100644
index 000000000000..a9324954bfca
--- /dev/null
+++ b/devel/py-collections-extended/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1748370737
+SHA256 (collections-extended-2.0.2.tar.gz) = d68ebd1e2208444e392aa0016e5c085bd897f89296f5c1860787de5935994114
+SIZE (collections-extended-2.0.2.tar.gz) = 22753
diff --git a/devel/py-collections-extended/pkg-descr b/devel/py-collections-extended/pkg-descr
new file mode 100644
index 000000000000..d5749b3a22e6
--- /dev/null
+++ b/devel/py-collections-extended/pkg-descr
@@ -0,0 +1,6 @@
+collections_extended is a pure Python module with no dependencies
+providing extra collections. The new collections include bags AKA
+multisets, setlists AKA unique lists or ordered sets, a bijection,
+a RangeMap which is a mapping from ranges to values, and an IndexedDict
+class. There are also frozen (hashable) varieties of bags and
+setlists.