diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2023-03-19 19:46:04 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2023-05-17 18:21:12 +0000 |
commit | f6c8fb6feb635f9368fa1b6fc70119d2fbe5d237 (patch) | |
tree | 26debba404e8171e351a0a30357c22db2931f6cd | |
parent | ce1f320f313a15437905d5a1571e760e03859289 (diff) | |
download | ports-f6c8fb6feb635f9368fa1b6fc70119d2fbe5d237.tar.gz ports-f6c8fb6feb635f9368fa1b6fc70119d2fbe5d237.zip |
devel/py-strenum: add new port
StrEnum is a Python enum.Enum that inherits from str to complement
enum.IntEnum in the standard library.
https://pypi.org/project/StrEnum/
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/py-strenum/Makefile | 21 | ||||
-rw-r--r-- | devel/py-strenum/distinfo | 3 | ||||
-rw-r--r-- | devel/py-strenum/pkg-descr | 2 |
4 files changed, 27 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index e33c6346f46e..cc6225737a4a 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4170,6 +4170,7 @@ SUBDIR += py-PyUtilib SUBDIR += py-QtPy SUBDIR += py-RPyC + SUBDIR += py-strenum SUBDIR += py-ZopeUndo SUBDIR += py-about-time SUBDIR += py-absl diff --git a/devel/py-strenum/Makefile b/devel/py-strenum/Makefile new file mode 100644 index 000000000000..f0f319f7c3f8 --- /dev/null +++ b/devel/py-strenum/Makefile @@ -0,0 +1,21 @@ +PORTNAME= StrEnum +DISTVERSION= 0.4.10 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Enum that inherits from str +WWW= https://pypi.org/project/StrEnum/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +NO_ARCH= yes +USES= python:3.7+ +USE_PYTHON= autoplist distutils pytest + +post-patch: + @${REINPLACE_CMD} '/pytest-runner/d' ${WRKSRC}/setup.py + +.include <bsd.port.mk> diff --git a/devel/py-strenum/distinfo b/devel/py-strenum/distinfo new file mode 100644 index 000000000000..65f4fd0443e0 --- /dev/null +++ b/devel/py-strenum/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1679255164 +SHA256 (StrEnum-0.4.10.tar.gz) = 898cc0ebb5054ee07400341ac1d75fdfee489d76d6df3fbc1c2eaf95971e3916 +SIZE (StrEnum-0.4.10.tar.gz) = 24620 diff --git a/devel/py-strenum/pkg-descr b/devel/py-strenum/pkg-descr new file mode 100644 index 000000000000..509841e3c3bb --- /dev/null +++ b/devel/py-strenum/pkg-descr @@ -0,0 +1,2 @@ +StrEnum is a Python enum.Enum that inherits from str to complement +enum.IntEnum in the standard library. |