git: 8f711d52639e - main - devel/py-jaraco.collections: Add new port

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Wed, 14 Jun 2023 12:32:36 UTC
The branch main has been updated by nivit:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8f711d52639ed7c63335d501a9ac08f3d0b05f3d

commit 8f711d52639ed7c63335d501a9ac08f3d0b05f3d
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2023-06-14 12:30:44 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2023-06-14 12:30:44 +0000

    devel/py-jaraco.collections: Add new port
    
    Python models and classes to supplement the stdlib 'collections' module.
    
    https://github.com/jaraco/jaraco.collections
---
 devel/Makefile                        |  1 +
 devel/py-jaraco.collections/Makefile  | 25 +++++++++++++++++++++++++
 devel/py-jaraco.collections/distinfo  |  3 +++
 devel/py-jaraco.collections/pkg-descr | 22 ++++++++++++++++++++++
 4 files changed, 51 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index b4b2f268cb54..6c686c5f7665 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4803,6 +4803,7 @@
     SUBDIR += py-janus
     SUBDIR += py-jaraco
     SUBDIR += py-jaraco.classes
+    SUBDIR += py-jaraco.collections
     SUBDIR += py-jaraco.context
     SUBDIR += py-jaraco.env
     SUBDIR += py-jaraco.functools
diff --git a/devel/py-jaraco.collections/Makefile b/devel/py-jaraco.collections/Makefile
new file mode 100644
index 000000000000..a3ce276808ea
--- /dev/null
+++ b/devel/py-jaraco.collections/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	jaraco.collections
+DISTVERSION=	4.2.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	nivit@FreeBSD.org
+COMMENT=	Python models and classes to supplement the stdlib ‘collections’
+WWW=		https://github.com/jaraco/jaraco.collections
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jaraco.text>=3.11.1:devel/py-jaraco.text@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools>=56:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.4.1:devel/py-setuptools_scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0.40.0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jaraco.text>=3.11.1:devel/py-jaraco.text@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517 pytest
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-jaraco.collections/distinfo b/devel/py-jaraco.collections/distinfo
new file mode 100644
index 000000000000..4436ef06765f
--- /dev/null
+++ b/devel/py-jaraco.collections/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1686684851
+SHA256 (jaraco.collections-4.2.0.tar.gz) = d91461bbfa4e1257e1d94cc2d0a4bd1e261229dda371f7bfa3683c64d32cd31e
+SIZE (jaraco.collections-4.2.0.tar.gz) = 17623
diff --git a/devel/py-jaraco.collections/pkg-descr b/devel/py-jaraco.collections/pkg-descr
new file mode 100644
index 000000000000..642df20eaaf4
--- /dev/null
+++ b/devel/py-jaraco.collections/pkg-descr
@@ -0,0 +1,22 @@
+Models and classes to supplement the stdlib 'collections' module.
+
+Highlights include:
+
+  * RangeMap: A mapping that accepts a range of values for keys.
+  * Projection: A subset over an existing mapping.
+  * KeyTransformingDict: Generalized mapping with keys transformed by a
+    function.
+  * FoldedCaseKeyedDict: A dict whose string keys are case-insensitive.
+  * BijectiveMap: A map where keys map to values and values back to their keys.
+  * ItemsAsAttributes: A mapping mix-in exposing items as attributes.
+  * IdentityOverrideMap: A map whose keys map by default to themselves unless
+    overridden.
+  * FrozenDict: A hashable, immutable map.
+  * Enumeration: An object whose keys are enumerated.
+  * Everything: A container that contains all things.
+  * Least, Greatest: Objects that are always less than or greater than any
+    other.
+  * pop_all: Return all items from the mutable sequence and remove them from
+    that sequence.
+  * DictStack: A stack of dicts, great for sharing scopes.
+  * WeightedLookup: A specialized RangeMap for selecting an item by weights.