pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-immutabledict py-immutabledict: import versio...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cb37a3dc8228
branches:  trunk
changeset: 453519:cb37a3dc8228
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Sun May 30 21:30:17 2021 +0000

description:
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.

diffstat:

 devel/py-immutabledict/DESCR    |  12 ++++++++++++
 devel/py-immutabledict/Makefile |  16 ++++++++++++++++
 devel/py-immutabledict/PLIST    |   9 +++++++++
 devel/py-immutabledict/distinfo |   6 ++++++
 4 files changed, 43 insertions(+), 0 deletions(-)

diffs (59 lines):

diff -r ccd94e733fd5 -r cb37a3dc8228 devel/py-immutabledict/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-immutabledict/DESCR      Sun May 30 21:30:17 2021 +0000
@@ -0,0 +1,12 @@
+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.
diff -r ccd94e733fd5 -r cb37a3dc8228 devel/py-immutabledict/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-immutabledict/Makefile   Sun May 30 21:30:17 2021 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2021/05/30 21:30:17 khorben Exp $
+
+DISTNAME=      immutabledict-2.0.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=i/immutabledict/}
+
+MAINTAINER=    khorben%defora.org@localhost
+HOMEPAGE=      https://github.com/corenting/immutabledict
+COMMENT=       Immutable wrapper around dictionaries for Python 3
+LICENSE=       mit
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r ccd94e733fd5 -r cb37a3dc8228 devel/py-immutabledict/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-immutabledict/PLIST      Sun May 30 21:30:17 2021 +0000
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2021/05/30 21:30:17 khorben Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/immutabledict/__init__.py
+${PYSITELIB}/immutabledict/__init__.pyc
+${PYSITELIB}/immutabledict/__init__.pyo
+${PYSITELIB}/immutabledict/py.typed
diff -r ccd94e733fd5 -r cb37a3dc8228 devel/py-immutabledict/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-immutabledict/distinfo   Sun May 30 21:30:17 2021 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/05/30 21:30:17 khorben Exp $
+
+SHA1 (immutabledict-2.0.0.tar.gz) = 8f03b07d4064e86863a2e8a6e4661a3ddfc4b945
+RMD160 (immutabledict-2.0.0.tar.gz) = 933882be8ab29b6785590daef233eede4e919854
+SHA512 (immutabledict-2.0.0.tar.gz) = 9274f8cf561c3773e32f37d23791a19dbaee3c3d7cdf7589054dc773a0a14b5362c92dcf989530d85eb9410b013179b69a083eebde678dee22e284e610578621
+Size (immutabledict-2.0.0.tar.gz) = 3827 bytes



Home | Main Index | Thread Index | Old Index