1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

misc/py-codecarbon: New port: Track Compute emissions, recommend ways to reduce environmental impact

This commit is contained in:
Yuri Victorovich 2024-04-28 00:05:18 -07:00
parent ec4122e22f
commit 85db96ff35
4 changed files with 39 additions and 0 deletions

View File

@ -408,6 +408,7 @@
SUBDIR += py-boost-histogram
SUBDIR += py-censys
SUBDIR += py-cinder
SUBDIR += py-codecarbon
SUBDIR += py-colorbrewer
SUBDIR += py-colored
SUBDIR += py-crudini

View File

@ -0,0 +1,33 @@
PORTNAME= codecarbon
DISTVERSION= 2.3.5
CATEGORIES= misc # machine-learning
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Track Compute emissions, recommend ways to reduce environmental impact
WWW= https://mlco2.github.io/codecarbon/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}arrow>0:devel/py-arrow@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}prometheus-client>0:net-mgmt/py-prometheus-client@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}py-cpuinfo>0:sysutils/py-py-cpuinfo@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pynvml>0:devel/py-pynvml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}rapidfuzz>0:devel/py-rapidfuzz@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}requests-mock>0:www/py-requests-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}responses>0:devel/py-responses@${PY_FLAVOR}
USES= python
USE_PYTHON= distutils autoplist pytest # some test dependencies are missing
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1714179020
SHA256 (codecarbon-2.3.5.tar.gz) = ef0f77d520f179624448a6a064f04647c08a8fb1bbc50cc516457899c69321ae
SIZE (codecarbon-2.3.5.tar.gz) = 170344

View File

@ -0,0 +1,2 @@
The codecarbon package estimates and tracks carbon emissions from your computer,
quantify and analyze their impact.