Skip to content

Commit

Permalink
devel/py-jaraco.collections: Add new port
Browse files Browse the repository at this point in the history
Python models and classes to supplement the stdlib 'collections' module.

https://github.com/jaraco/jaraco.collections
  • Loading branch information
nivit committed Jun 14, 2023
1 parent b8cbc84 commit 8f711d5
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -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
Expand Down
25 changes: 25 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
22 changes: 22 additions & 0 deletions 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.

0 comments on commit 8f711d5

Please sign in to comment.