pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-frozendict



Module Name:    pkgsrc
Committed By:   js
Date:           Sat Apr 18 12:45:26 UTC 2020

Added Files:
        pkgsrc/devel/py-frozendict: DESCR Makefile PLIST distinfo

Log Message:
Import devel/py-frozendict from wip

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

Immutable wrapper around dictionaries


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-frozendict/DESCR \
    pkgsrc/devel/py-frozendict/Makefile pkgsrc/devel/py-frozendict/PLIST \
    pkgsrc/devel/py-frozendict/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/py-frozendict/DESCR
diff -u /dev/null pkgsrc/devel/py-frozendict/DESCR:1.1
--- /dev/null   Sat Apr 18 12:45:26 2020
+++ pkgsrc/devel/py-frozendict/DESCR    Sat Apr 18 12:45:26 2020
@@ -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.
Index: pkgsrc/devel/py-frozendict/Makefile
diff -u /dev/null pkgsrc/devel/py-frozendict/Makefile:1.1
--- /dev/null   Sat Apr 18 12:45:26 2020
+++ pkgsrc/devel/py-frozendict/Makefile Sat Apr 18 12:45:26 2020
@@ -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"
Index: pkgsrc/devel/py-frozendict/PLIST
diff -u /dev/null pkgsrc/devel/py-frozendict/PLIST:1.1
--- /dev/null   Sat Apr 18 12:45:26 2020
+++ pkgsrc/devel/py-frozendict/PLIST    Sat Apr 18 12:45:26 2020
@@ -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
Index: pkgsrc/devel/py-frozendict/distinfo
diff -u /dev/null pkgsrc/devel/py-frozendict/distinfo:1.1
--- /dev/null   Sat Apr 18 12:45:26 2020
+++ pkgsrc/devel/py-frozendict/distinfo Sat Apr 18 12:45:26 2020
@@ -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