pkgsrc-WIP-changes archive

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

py-expiringdict: new package



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Tue Aug 23 23:13:32 2022 +0200
Changeset:	caf4b7322860eb832975d1f1834debf7b4c21b19

Modified Files:
	Makefile
Added Files:
	py-expiringdict/DESCR
	py-expiringdict/Makefile
	py-expiringdict/PLIST
	py-expiringdict/distinfo

Log Message:
py-expiringdict: new package

expiringdict is a Python caching library. The core of the library
is ExpiringDict class which is an ordered dictionary with auto-expiring
values for caching purposes. Expiration happens on any access,
object is locked during cleanup from expired values. ExpiringDict
can not store more than `max_len` elements - the oldest will be
deleted.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=caf4b7322860eb832975d1f1834debf7b4c21b19

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

diffstat:
 Makefile                 |  1 +
 py-expiringdict/DESCR    |  6 ++++++
 py-expiringdict/Makefile | 24 ++++++++++++++++++++++++
 py-expiringdict/PLIST    | 10 ++++++++++
 py-expiringdict/distinfo |  5 +++++
 5 files changed, 46 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 11301ebb96..3d31632b3e 100644
--- a/Makefile
+++ b/Makefile
@@ -3778,6 +3778,7 @@ SUBDIR+=	py-eventlet
 SUBDIR+=	py-executor
 SUBDIR+=	py-exocode
 SUBDIR+=	py-expander
+SUBDIR+=	py-expiringdict
 SUBDIR+=	py-expression
 SUBDIR+=	py-extremes
 SUBDIR+=	py-face
diff --git a/py-expiringdict/DESCR b/py-expiringdict/DESCR
new file mode 100644
index 0000000000..d861e1bfda
--- /dev/null
+++ b/py-expiringdict/DESCR
@@ -0,0 +1,6 @@
+expiringdict is a Python caching library. The core of the library
+is ExpiringDict class which is an ordered dictionary with auto-expiring
+values for caching purposes. Expiration happens on any access,
+object is locked during cleanup from expired values. ExpiringDict
+can not store more than `max_len` elements - the oldest will be
+deleted.
diff --git a/py-expiringdict/Makefile b/py-expiringdict/Makefile
new file mode 100644
index 0000000000..59038b78b1
--- /dev/null
+++ b/py-expiringdict/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD$
+
+DISTNAME=	expiringdict-1.2.2
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	devel python
+MASTER_SITES=	${MASTER_SITE_PYPI:=e/expiringdict/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://www.mailgun.com/
+COMMENT=	Dictionary with auto-expiring values for caching purposes
+LICENSE=	apache-2.0
+
+TEST_DEPENDS+=	${PYPKGPREFIX}-dill>=0:../../textproc/py-dill
+TEST_DEPENDS+=	${PYPKGPREFIX}-coverage>=0:../../devel/py-coverage
+TEST_DEPENDS+=	${PYPKGPREFIX}-coveralls>=3:../../wip/py-coveralls
+TEST_DEPENDS+=	${PYPKGPREFIX}-mock>=0:../../devel/py-mock
+TEST_DEPENDS+=	${PYPKGPREFIX}-nose>=0:../../devel/py-nose
+
+USE_LANGUAGES=	# none
+
+PYTHON_VERSIONS_INCOMPATIBLE=	27
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-expiringdict/PLIST b/py-expiringdict/PLIST
new file mode 100644
index 0000000000..6b4bf237af
--- /dev/null
+++ b/py-expiringdict/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD$
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${EGG_INFODIR}/zip-safe
+${PYSITELIB}/expiringdict/__init__.py
+${PYSITELIB}/expiringdict/__init__.pyc
+${PYSITELIB}/expiringdict/__init__.pyo
diff --git a/py-expiringdict/distinfo b/py-expiringdict/distinfo
new file mode 100644
index 0000000000..1e36b65a53
--- /dev/null
+++ b/py-expiringdict/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (expiringdict-1.2.2.tar.gz) = 019d4f85672487a3c6f3451a5a421f77baca6518aa804b003a81b022b0025efe
+SHA512 (expiringdict-1.2.2.tar.gz) = 7c56642d1bb403520b6fe47b0ba3f05de464deab64e4783cc281c87fb9751e80a371d5b54485e51ff056eca5aa83b62f13b47d3e30fd6d8b23dd60b67759ac45
+Size (expiringdict-1.2.2.tar.gz) = 8137 bytes


Home | Main Index | Thread Index | Old Index