git: 117c9d865f3d - main - devel/py-requirements-parser: Add py-requirements-parser 0.11.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 21 Nov 2024 13:40:51 UTC
The branch main has been updated by sunpoet:

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

commit 117c9d865f3df692366f230434bb37191522b96e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-11-21 13:18:05 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-11-21 13:37:51 +0000

    devel/py-requirements-parser: Add py-requirements-parser 0.11.0
    
    Requirements Parser is a small Python module for parsing Pip requirement files.
    
    The goal is to parse everything in the Pip requirement file format spec.
---
 devel/Makefile                         |  1 +
 devel/py-requirements-parser/Makefile  | 25 +++++++++++++++++++++++++
 devel/py-requirements-parser/distinfo  |  3 +++
 devel/py-requirements-parser/pkg-descr |  3 +++
 4 files changed, 32 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 89ca28029e95..d8a75f3de18f 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5786,6 +5786,7 @@
     SUBDIR += py-represent
     SUBDIR += py-requestsexceptions
     SUBDIR += py-requirements-detector
+    SUBDIR += py-requirements-parser
     SUBDIR += py-requirementslib
     SUBDIR += py-resolvelib
     SUBDIR += py-resolvelib05
diff --git a/devel/py-requirements-parser/Makefile b/devel/py-requirements-parser/Makefile
new file mode 100644
index 000000000000..13999a2773c7
--- /dev/null
+++ b/devel/py-requirements-parser/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	requirements-parser
+PORTVERSION=	0.11.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	requirements_parser-${PORTVERSION}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Python module for parsing Pip requirement files
+WWW=		https://requirements-parser.readthedocs.io/en/latest/ \
+		https://github.com/madpah/requirements-parser
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}packaging>=23.2:devel/py-packaging@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}types-setuptools>=69.1.0:devel/py-types-setuptools@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-requirements-parser/distinfo b/devel/py-requirements-parser/distinfo
new file mode 100644
index 000000000000..0e3354d805e9
--- /dev/null
+++ b/devel/py-requirements-parser/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1731679132
+SHA256 (requirements_parser-0.11.0.tar.gz) = 35f36dc969d14830bf459803da84f314dc3d17c802592e9e970f63d0359e5920
+SIZE (requirements_parser-0.11.0.tar.gz) = 23663
diff --git a/devel/py-requirements-parser/pkg-descr b/devel/py-requirements-parser/pkg-descr
new file mode 100644
index 000000000000..ebcb179318ee
--- /dev/null
+++ b/devel/py-requirements-parser/pkg-descr
@@ -0,0 +1,3 @@
+Requirements Parser is a small Python module for parsing Pip requirement files.
+
+The goal is to parse everything in the Pip requirement file format spec.