graphics/py-colour-science: New port: Colour Science for Python

This commit is contained in:
Yuri Victorovich
2025-05-30 17:30:50 -07:00
parent 55f58874a0
commit 0de43f761d
4 changed files with 35 additions and 0 deletions
+1
View File
@@ -897,6 +897,7 @@
SUBDIR += py-colorthief
SUBDIR += py-colorz
SUBDIR += py-colour
SUBDIR += py-colour-science
SUBDIR += py-contextily
SUBDIR += py-descartes
SUBDIR += py-diplib
+29
View File
@@ -0,0 +1,29 @@
PORTNAME= colour-science
DISTVERSION= 0.4.6
CATEGORIES= graphics
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Colour Science for Python
WWW= https://www.colour-science.org \
https://github.com/colour-science/colour
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}imageio>=2:graphics/py-imageio@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}numpy>=1.24:math/py-numpy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}scipy>=1.10:science/py-scipy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>=4:devel/py-typing-extensions@${PY_FLAVOR}
USES= python
USE_PYTHON= pep517 autoplist pytest
NO_ARCH= yes
# the test colour/characterisation/tests/test_correction.py::TestColourCorrectionFinlayson2015::test_nan_colour_correction_Finlayson2015 hangs, see https://github.com/colour-science/colour/issues/1351
.include <bsd.port.mk>
+3
View File
@@ -0,0 +1,3 @@
TIMESTAMP = 1748363370
SHA256 (colour_science-0.4.6.tar.gz) = be98c2c9b2a5caf0c443431f402599ca9e1cc7d944bb804156803bcc97af4cf0
SIZE (colour_science-0.4.6.tar.gz) = 2228183
+2
View File
@@ -0,0 +1,2 @@
Colour is an open-source Python package providing a comprehensive number of
algorithms and datasets for colour science.