git: e9c2fa18e8f8 - main - devel/py-property-cached: New port: Decorator for caching properties in classes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Dec 2022 21:00:31 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e9c2fa18e8f804503eea9bedb519df96510e8a9a
commit e9c2fa18e8f804503eea9bedb519df96510e8a9a
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-12-26 20:28:30 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-12-26 21:00:28 +0000
devel/py-property-cached: New port: Decorator for caching properties in classes
---
devel/Makefile | 1 +
devel/py-property-cached/Makefile | 19 +++++++++++++++++++
devel/py-property-cached/distinfo | 3 +++
devel/py-property-cached/pkg-descr | 4 ++++
4 files changed, 27 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 78e3fcc4e59b..f4644e63f951 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5032,6 +5032,7 @@
SUBDIR += py-prompt-toolkit
SUBDIR += py-prompt-toolkit1
SUBDIR += py-prompt-toolkit2
+ SUBDIR += py-property-cached
SUBDIR += py-proselint
SUBDIR += py-proto-plus
SUBDIR += py-protobuf
diff --git a/devel/py-property-cached/Makefile b/devel/py-property-cached/Makefile
new file mode 100644
index 000000000000..5b7029ef3980
--- /dev/null
+++ b/devel/py-property-cached/Makefile
@@ -0,0 +1,19 @@
+PORTNAME= property-cached
+PORTVERSION= 1.6.4
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Decorator for caching properties in classes
+WWW= https://github.com/althonos/property-cached/
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= python:3.5+ zip
+USE_PYTHON= distutils autoplist pytest # 1 test fails, see https://github.com/pydanny/cached-property/pull/294
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-property-cached/distinfo b/devel/py-property-cached/distinfo
new file mode 100644
index 000000000000..cf5174887e4b
--- /dev/null
+++ b/devel/py-property-cached/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1672086239
+SHA256 (property-cached-1.6.4.zip) = 3e9c4ef1ed3653909147510481d7df62a3cfb483461a6986a6f1dcd09b2ebb73
+SIZE (property-cached-1.6.4.zip) = 23539
diff --git a/devel/py-property-cached/pkg-descr b/devel/py-property-cached/pkg-descr
new file mode 100644
index 000000000000..e331904c03f0
--- /dev/null
+++ b/devel/py-property-cached/pkg-descr
@@ -0,0 +1,4 @@
+cached-property is a decorator for caching properties in classes. It makes
+caching of time or computational expensive properties quick and easy.
+
+cached-property is forked from cached-property.