git: f6c8fb6feb63 - main - devel/py-strenum: add new port

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 17 May 2023 18:22:10 UTC
The branch main has been updated by jbeich:

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

commit f6c8fb6feb635f9368fa1b6fc70119d2fbe5d237
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-03-19 19:46:04 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-05-17 18:21:12 +0000

    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/
---
 devel/Makefile             |  1 +
 devel/py-strenum/Makefile  | 21 +++++++++++++++++++++
 devel/py-strenum/distinfo  |  3 +++
 devel/py-strenum/pkg-descr |  2 ++
 4 files changed, 27 insertions(+)

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.