Skip to content

Commit

Permalink
devel/py-property-cached: New port: Decorator for caching properties …
Browse files Browse the repository at this point in the history
…in classes
  • Loading branch information
yurivict committed Dec 26, 2022
1 parent fecf7d1 commit e9c2fa1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -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
Expand Down
19 changes: 19 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
4 changes: 4 additions & 0 deletions 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.

0 comments on commit e9c2fa1

Please sign in to comment.