mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
misc/py-cmap: New port: Scientific colormaps for python, without dependencies
This commit is contained in:
parent
2ad5c8b8c4
commit
c42c6b09c4
@ -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
|
||||
|
37
misc/py-cmap/Makefile
Normal file
37
misc/py-cmap/Makefile
Normal file
@ -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>
|
3
misc/py-cmap/distinfo
Normal file
3
misc/py-cmap/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1725678559
|
||||
SHA256 (cmap-0.3.0.tar.gz) = 01ddd3f7b3abc42c3c126d2a590e8c03615a32be2b184ba68a69a2798f4fe460
|
||||
SIZE (cmap-0.3.0.tar.gz) = 591030
|
8
misc/py-cmap/pkg-descr
Normal file
8
misc/py-cmap/pkg-descr
Normal file
@ -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.
|
Loading…
Reference in New Issue
Block a user