summaryrefslogtreecommitdiff
path: root/graphics/py-colour-science
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/py-colour-science')
-rw-r--r--graphics/py-colour-science/Makefile30
-rw-r--r--graphics/py-colour-science/distinfo3
-rw-r--r--graphics/py-colour-science/pkg-descr2
3 files changed, 35 insertions, 0 deletions
diff --git a/graphics/py-colour-science/Makefile b/graphics/py-colour-science/Makefile
new file mode 100644
index 000000000000..51bdde202c5d
--- /dev/null
+++ b/graphics/py-colour-science/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= colour-science
+DISTVERSION= 0.4.6
+PORTREVISION= 1
+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>
diff --git a/graphics/py-colour-science/distinfo b/graphics/py-colour-science/distinfo
new file mode 100644
index 000000000000..b677140b3e0f
--- /dev/null
+++ b/graphics/py-colour-science/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1748363370
+SHA256 (colour_science-0.4.6.tar.gz) = be98c2c9b2a5caf0c443431f402599ca9e1cc7d944bb804156803bcc97af4cf0
+SIZE (colour_science-0.4.6.tar.gz) = 2228183
diff --git a/graphics/py-colour-science/pkg-descr b/graphics/py-colour-science/pkg-descr
new file mode 100644
index 000000000000..4c9b3916fb2a
--- /dev/null
+++ b/graphics/py-colour-science/pkg-descr
@@ -0,0 +1,2 @@
+Colour is an open-source Python package providing a comprehensive number of
+algorithms and datasets for colour science.