git: bb2fd97c7436 - main - devel/py-cachier: New port: Persistent/stale-free/local/cross-machine caching for Python functions

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 20 Dec 2024 06:06:04 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bb2fd97c743618ef95c7dcc8774dd8074623156c

commit bb2fd97c743618ef95c7dcc8774dd8074623156c
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-12-20 01:42:11 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-12-20 06:05:42 +0000

    devel/py-cachier: New port: Persistent/stale-free/local/cross-machine caching for Python functions
---
 devel/Makefile             |  1 +
 devel/py-cachier/Makefile  | 29 +++++++++++++++++++++++++++++
 devel/py-cachier/distinfo  |  3 +++
 devel/py-cachier/pkg-descr |  2 ++
 4 files changed, 35 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index e1698492130c..9b21b1e447a2 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4600,6 +4600,7 @@
     SUBDIR += py-cachetools
     SUBDIR += py-cachey
     SUBDIR += py-cacheyou
+    SUBDIR += py-cachier
     SUBDIR += py-cachy
     SUBDIR += py-cadquery-pywrap
     SUBDIR += py-calver
diff --git a/devel/py-cachier/Makefile b/devel/py-cachier/Makefile
new file mode 100644
index 000000000000..a0b396917d5b
--- /dev/null
+++ b/devel/py-cachier/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	cachier
+DISTVERSIONPREFIX=	v
+DISTVERSION=	3.1.2
+CATEGORIES=	devel python
+#MASTER_SITES=	PYPI # no tests
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Persistent/stale-free/local/cross-machine caching for Python functions
+WWW=		https://github.com/python-cachier/cachier
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}portalocker>=2.3.2:devel/py-portalocker@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}watchdog>=2.3.1:devel/py-watchdog@${PY_FLAVOR}
+# TEST_DEPENDS has 2 not-yet-ported dependencies: birch, pymongo-inmemory
+
+USES=		python
+USE_PYTHON=	pep517 autoplist
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	python-cachier
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-cachier/distinfo b/devel/py-cachier/distinfo
new file mode 100644
index 000000000000..3a3def270b58
--- /dev/null
+++ b/devel/py-cachier/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1734658381
+SHA256 (python-cachier-cachier-v3.1.2_GH0.tar.gz) = 1ae8888287d6861788e81163b72a0b4a28e144a5943b94d2ff27668d423fc444
+SIZE (python-cachier-cachier-v3.1.2_GH0.tar.gz) = 32120
diff --git a/devel/py-cachier/pkg-descr b/devel/py-cachier/pkg-descr
new file mode 100644
index 000000000000..36cc17682332
--- /dev/null
+++ b/devel/py-cachier/pkg-descr
@@ -0,0 +1,2 @@
+Cachier is a Python package that provides persistent, stale-free, local
+and cross-machine caching for Python functions.