Skip to content

Commit de3b07a

Browse files
committed
py-immutabledict: import version 2.0.0
immutable is a fork of frozendict, an immutable wrapper around dictionaries. It implements the complete mapping interface. It can be used as a drop-in replacement for dictionaries where immutability is desired. The immutabledict constructor mimics dict, and all of the expected interfaces (iter, len, repr, hash, getitem) are provided. Note that an immutabledict does not guarantee the immutability of its values, so the utility of hash method is restricted by usage. The only difference is that the copy() method of immutable takes variable keyword arguments, which will be present as key/value pairs in the new, immutable copy.
1 parent b3790f0 commit de3b07a

4 files changed

Lines changed: 43 additions & 0 deletions

File tree

devel/py-immutabledict/DESCR

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
immutable is a fork of frozendict, an immutable wrapper around dictionaries.
2+
3+
It implements the complete mapping interface. It can be used as a drop-in
4+
replacement for dictionaries where immutability is desired. The immutabledict
5+
constructor mimics dict, and all of the expected interfaces (iter, len, repr,
6+
hash, getitem) are provided. Note that an immutabledict does not guarantee the
7+
immutability of its values, so the utility of hash method is restricted by
8+
usage.
9+
10+
The only difference is that the copy() method of immutable takes variable
11+
keyword arguments, which will be present as key/value pairs in the new,
12+
immutable copy.

devel/py-immutabledict/Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# $NetBSD: Makefile,v 1.1 2021/05/30 21:30:17 khorben Exp $
2+
3+
DISTNAME= immutabledict-2.0.0
4+
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5+
CATEGORIES= devel python
6+
MASTER_SITES= ${MASTER_SITE_PYPI:=i/immutabledict/}
7+
8+
MAINTAINER= khorben@defora.org
9+
HOMEPAGE= https://github.com/corenting/immutabledict
10+
COMMENT= Immutable wrapper around dictionaries for Python 3
11+
LICENSE= mit
12+
13+
USE_LANGUAGES= # none
14+
15+
.include "../../lang/python/egg.mk"
16+
.include "../../mk/bsd.pkg.mk"

devel/py-immutabledict/PLIST

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@comment $NetBSD: PLIST,v 1.1 2021/05/30 21:30:17 khorben Exp $
2+
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
3+
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
4+
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
5+
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
6+
${PYSITELIB}/immutabledict/__init__.py
7+
${PYSITELIB}/immutabledict/__init__.pyc
8+
${PYSITELIB}/immutabledict/__init__.pyo
9+
${PYSITELIB}/immutabledict/py.typed

devel/py-immutabledict/distinfo

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
$NetBSD: distinfo,v 1.1 2021/05/30 21:30:17 khorben Exp $
2+
3+
SHA1 (immutabledict-2.0.0.tar.gz) = 8f03b07d4064e86863a2e8a6e4661a3ddfc4b945
4+
RMD160 (immutabledict-2.0.0.tar.gz) = 933882be8ab29b6785590daef233eede4e919854
5+
SHA512 (immutabledict-2.0.0.tar.gz) = 9274f8cf561c3773e32f37d23791a19dbaee3c3d7cdf7589054dc773a0a14b5362c92dcf989530d85eb9410b013179b69a083eebde678dee22e284e610578621
6+
Size (immutabledict-2.0.0.tar.gz) = 3827 bytes

0 commit comments

Comments
 (0)