devel/py-property-cached: New port: Decorator for caching properties in classes

This commit is contained in:
Yuri Victorovich 2022-12-26 12:28:30 -08:00
parent fecf7d13ac
commit e9c2fa18e8
4 changed files with 27 additions and 0 deletions

View file

@ -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

View file

@ -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>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1672086239
SHA256 (property-cached-1.6.4.zip) = 3e9c4ef1ed3653909147510481d7df62a3cfb483461a6986a6f1dcd09b2ebb73
SIZE (property-cached-1.6.4.zip) = 23539

View file

@ -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.