PORTNAME=	grimoire-elk
DISTVERSION=	1.8.0
CATEGORIES=	textproc python
MASTER_SITES=	PYPI
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	${PORTNAME:S/-/_/}-${DISTVERSION}

# Ask clusteradm@ before removal of this port if it becomes unmaintained
MAINTAINER=	siva@FreeBSD.org
COMMENT=	GrimoireELK processes and stores software development data to ElasticSearch
WWW=		https://github.com/chaoss/grimoirelab-elk

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
RUN_DEPENDS=	\
	${PYTHON_PKGNAMEPREFIX}opensearch-py>=3.0.0:textproc/py-opensearch-py@${PY_FLAVOR} \
	${PYTHON_PKGNAMEPREFIX}requests>=2.7.0:www/py-requests@${PY_FLAVOR} \
	${PYTHON_PKGNAMEPREFIX}urllib3>=1.26:net/py-urllib3@${PY_FLAVOR} \
	${PYTHON_PKGNAMEPREFIX}geopy>=2.0.0:net/py-geopy@${PY_FLAVOR} \
	${PYTHON_PKGNAMEPREFIX}pandas>=0.22:math/py-pandas@${PY_FLAVOR} \
	${PYTHON_PKGNAMEPREFIX}statsmodels>=0.9.0:math/py-statsmodels@${PY_FLAVOR} \
	${PYTHON_PKGNAMEPREFIX}sortinghat>=0.7.20:devel/py-sortinghat@${PY_FLAVOR} \
	${PYTHON_PKGNAMEPREFIX}grimoirelab-toolkit>=0.3:devel/py-grimoirelab-toolkit@${PY_FLAVOR} \
	${PYTHON_PKGNAMEPREFIX}cereslib>=0.3:devel/py-cereslib@${PY_FLAVOR} \
	${PYTHON_PKGNAMEPREFIX}graal>=0.3:devel/py-graal@${PY_FLAVOR} \
	${PYTHON_PKGNAMEPREFIX}perceval>=0.19:devel/py-perceval@${PY_FLAVOR} \
	${PYTHON_PKGNAMEPREFIX}perceval-mozilla>=0.3:devel/py-perceval-mozilla@${PY_FLAVOR} \
	${PYTHON_PKGNAMEPREFIX}perceval-opnfv>=0.2:devel/py-perceval-opnfv@${PY_FLAVOR} \
	${PYTHON_PKGNAMEPREFIX}perceval-puppet>=0.2:devel/py-perceval-puppet@${PY_FLAVOR} \
	${PYTHON_PKGNAMEPREFIX}perceval-weblate>=0.2:devel/py-perceval-weblate@${PY_FLAVOR}

USES=		python shebangfix
USE_PYTHON=	autoplist concurrent pep517 pytest
SHEBANG_GLOB=	*.py

NO_ARCH=	yes

.include <bsd.port.mk>
