git: c42c6b09c4ec - main - misc/py-cmap: New port: Scientific colormaps for python, without dependencies
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 07 Sep 2024 06:25:04 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=c42c6b09c4ec0a7160deaa9416cb8e58f6946b69 commit c42c6b09c4ec0a7160deaa9416cb8e58f6946b69 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-09-07 04:35:42 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-09-07 06:24:09 +0000 misc/py-cmap: New port: Scientific colormaps for python, without dependencies --- misc/Makefile | 1 + misc/py-cmap/Makefile | 37 +++++++++++++++++++++++++++++++++++++ misc/py-cmap/distinfo | 3 +++ misc/py-cmap/pkg-descr | 8 ++++++++ 4 files changed, 49 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index f9ccebe31387..ad49342f685a 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -418,6 +418,7 @@ SUBDIR += py-ast-comments SUBDIR += py-boost-histogram SUBDIR += py-censys + SUBDIR += py-cmap SUBDIR += py-codecarbon SUBDIR += py-colorbrewer SUBDIR += py-colored diff --git a/misc/py-cmap/Makefile b/misc/py-cmap/Makefile new file mode 100644 index 000000000000..ce825ec34e31 --- /dev/null +++ b/misc/py-cmap/Makefile @@ -0,0 +1,37 @@ +PORTNAME= cmap +DISTVERSION= 0.3.0 +CATEGORIES= misc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Scientific colormaps for python, without dependencies +WWW= https://cmap-docs.readthedocs.io/en/stable/ + +LICENSE= BSD2CLAUSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>0:devel/py-hatch-vcs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PYNUMPY} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bokeh>0:www/py-bokeh@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}colorspacious>0:devel/py-colorspacious@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}colour>0:graphics/py-colour@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numba>0:devel/py-numba@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}plotly>0:graphics/py-plotly@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydantic-extra-types>=2:devel/py-pydantic-extra-types@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydantic2>0:devel/py-pydantic2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyqtgraph>0:graphics/py-pyqtgraph@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-qt>0:devel/py-pytest-qt@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}rich>0:textproc/py-rich@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}vispy>=0.14:graphics/py-vispy@${PY_FLAVOR} + # TEST_DEPENDS also needs napari, pygfx, viscm + +USES= python +USE_PYTHON= pep517 autoplist pytest # 3 tests fail because the $DISPLAY variable is missing + +NO_ARCH= yes + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +.include <bsd.port.mk> diff --git a/misc/py-cmap/distinfo b/misc/py-cmap/distinfo new file mode 100644 index 000000000000..05c9c3c44716 --- /dev/null +++ b/misc/py-cmap/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1725678559 +SHA256 (cmap-0.3.0.tar.gz) = 01ddd3f7b3abc42c3c126d2a590e8c03615a32be2b184ba68a69a2798f4fe460 +SIZE (cmap-0.3.0.tar.gz) = 591030 diff --git a/misc/py-cmap/pkg-descr b/misc/py-cmap/pkg-descr new file mode 100644 index 000000000000..53d3238b7819 --- /dev/null +++ b/misc/py-cmap/pkg-descr @@ -0,0 +1,8 @@ +cmap is a work-in-progress colormap library for python, providing all of the +colormaps in matplotlib, vispy, cmocean, (and more), with no dependencies +beyond numpy. + +Mapping scalar values to colors is a very common procedure in scientific +visualization; as such, many visualization libraries (e.g. matplotlib, vispy, +napari, etc...) have some need for and some internal representation of colors +and colormaps.