summaryrefslogtreecommitdiff
path: root/graphics/py-colour-science/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/py-colour-science/Makefile')
-rw-r--r--graphics/py-colour-science/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/graphics/py-colour-science/Makefile b/graphics/py-colour-science/Makefile
new file mode 100644
index 000000000000..ead829190094
--- /dev/null
+++ b/graphics/py-colour-science/Makefile
@@ -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>