git: 3c925f188cd0 - main - devel/py-perceval: New port

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 10 Oct 2024 08:05:29 UTC
The branch main has been updated by bofh:

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

commit 3c925f188cd06857a2d605c27377a1d86ea48ec9
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-10-08 09:31:30 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-10-10 08:04:59 +0000

    devel/py-perceval: New port
    
    Send Sir Perceval on a quest to retrieve and gather data from software
    repositories.
    
    WWW: https://github.com/chaoss/grimoirelab-perceval
    
    Sponsored by:   The FreeBSD Foundation
---
 devel/Makefile              |  1 +
 devel/py-perceval/Makefile  | 37 +++++++++++++++++++++++++++++++++++++
 devel/py-perceval/distinfo  |  3 +++
 devel/py-perceval/pkg-descr |  2 ++
 4 files changed, 43 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index ba22607c3bfa..b635094a8d5d 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5373,6 +5373,7 @@
     SUBDIR += py-pep562
     SUBDIR += py-pep621
     SUBDIR += py-pep8-naming
+    SUBDIR += py-perceval
     SUBDIR += py-period
     SUBDIR += py-persistent
     SUBDIR += py-petname
diff --git a/devel/py-perceval/Makefile b/devel/py-perceval/Makefile
new file mode 100644
index 000000000000..3341174e3adf
--- /dev/null
+++ b/devel/py-perceval/Makefile
@@ -0,0 +1,37 @@
+PORTNAME=	perceval
+DISTVERSION=	1.0.7
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	bofh@FreeBSD.org
+COMMENT=	Send Sir Perceval on a quest to fetch and gather data from software repositories
+WWW=		https://github.com/chaoss/grimoirelab-perceval
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
+# devel/py-dulwich should be at least 0.21.5
+RUN_DEPENDS=	\
+		${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.3.2:www/py-beautifulsoup@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}cryptography>=41.0.3:security/py-cryptography@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}dulwich>=0.21.2:devel/py-dulwich@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}feedparser>=6.0.8:textproc/py-feedparser@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}grimoirelab-toolkit>=0.3:devel/py-grimoirelab-toolkit@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyjwt>=2.4.0:www/py-pyjwt@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.6.0:devel/py-python-dateutil@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.7.0:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}urllib3>=2.2:net/py-urllib3@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}httpretty>0:www/py-httpretty@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR}
+
+USES=		python shebangfix
+USE_PYTHON=	autoplist concurrent pep517 unittest2
+SHEBANG_GLOB=	*.py
+
+NO_ARCH=	yes
+
+TEST_WRKSRC=	${WRKSRC}/tests
+
+.include <bsd.port.mk>
diff --git a/devel/py-perceval/distinfo b/devel/py-perceval/distinfo
new file mode 100644
index 000000000000..a24fed360f3e
--- /dev/null
+++ b/devel/py-perceval/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1728344449
+SHA256 (perceval-1.0.7.tar.gz) = 57de11d8c30966ec100209060782700ea4e028f7a79b3eee5a6ff4b2ed895c1b
+SIZE (perceval-1.0.7.tar.gz) = 950989
diff --git a/devel/py-perceval/pkg-descr b/devel/py-perceval/pkg-descr
new file mode 100644
index 000000000000..183a9dce4751
--- /dev/null
+++ b/devel/py-perceval/pkg-descr
@@ -0,0 +1,2 @@
+Send Sir Perceval on a quest to retrieve and gather data from software
+repositories.