Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-frozendict Import devel/py-frozendict from wip



details:   https://anonhg.NetBSD.org/pkgsrc/rev/37a6808b9ad7
branches:  trunk
changeset: 429295:37a6808b9ad7
user:      js <js%pkgsrc.org@localhost>
date:      Sat Apr 18 12:45:26 2020 +0000

description:
Import devel/py-frozendict from wip

This is a dependency for the Matrix Synapse Homeserver I want to import.

Immutable wrapper around dictionaries

diffstat:

 devel/py-frozendict/DESCR    |  15 +++++++++++++++
 devel/py-frozendict/Makefile |  14 ++++++++++++++
 devel/py-frozendict/PLIST    |   8 ++++++++
 devel/py-frozendict/distinfo |   6 ++++++
 4 files changed, 43 insertions(+), 0 deletions(-)

diffs (59 lines):

diff -r a2a52bfcba49 -r 37a6808b9ad7 devel/py-frozendict/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-frozendict/DESCR Sat Apr 18 12:45:26 2020 +0000
@@ -0,0 +1,15 @@
+frozendict is an immutable wrapper around dictionaries that implements
+the complete mapping interface. It can be used as a drop-in replacement
+for dictionaries where immutability is desired.
+
+Of course, this is python, and you can still poke around the object's
+internals if you want.
+
+The frozendict constructor mimics dict, and all of the expected
+interfaces (iter, len, repr, hash, getitem) are provided. Note that a
+frozendict 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 frozendict takes
+variable keyword arguments, which will be present as key/value pairs in
+the new, immutable copy.
diff -r a2a52bfcba49 -r 37a6808b9ad7 devel/py-frozendict/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-frozendict/Makefile      Sat Apr 18 12:45:26 2020 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2020/04/18 12:45:26 js Exp $
+
+DISTNAME=      frozendict-1.2
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/v//}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=f/frozendict/}
+
+MAINTAINER=    kethzer.dr%gmail.com@localhost
+HOMEPAGE=      https://github.com/slezica/python-frozendict
+COMMENT=       Immutable wrapper around dictionaries
+LICENSE=       mit
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r a2a52bfcba49 -r 37a6808b9ad7 devel/py-frozendict/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-frozendict/PLIST Sat Apr 18 12:45:26 2020 +0000
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1 2020/04/18 12:45:26 js Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/frozendict/__init__.py
+${PYSITELIB}/frozendict/__init__.pyc
+${PYSITELIB}/frozendict/__init__.pyo
diff -r a2a52bfcba49 -r 37a6808b9ad7 devel/py-frozendict/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-frozendict/distinfo      Sat Apr 18 12:45:26 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/04/18 12:45:26 js Exp $
+
+SHA1 (frozendict-1.2.tar.gz) = 88a893fecbb8ad629dbc4664358b25885f750e9b
+RMD160 (frozendict-1.2.tar.gz) = f9f5ec836fb3d1711da3eec2101538156ec709df
+SHA512 (frozendict-1.2.tar.gz) = 095cf5f6f8b02bf5666e04200431992bf4b3160aae3464d528bc256b1ab643e29dda78fe94d9e8c983dbfe66cd2459e0559122e17b6b8660c0552adc5318b3da
+Size (frozendict-1.2.tar.gz) = 2650 bytes



Home | Main Index | Thread Index | Old Index