Something went wrong. Try again.
lol
Something went wrong. Try again.
2.1 kB · 121 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122{ lib, stdenv, buildPythonPackage, fetchFromGitHub,
# build-system flit-core,
# dependencies arviz-base, arviz-stats,
# optional-dependencies # bokeh bokeh, # doc h5netcdf, jupyter-sphinx, myst-nb, myst-parser, numpydoc, plotly, sphinx, sphinx-book-theme, sphinx-copybutton, sphinx-design, # matplotlib matplotlib, # plotly webcolors, # test hypothesis, kaleido, pytest, pytest-cov,
# tests pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "arviz-plots"; version = "0.8.0"; pyproject = true;
src = fetchFromGitHub { owner = "arviz-devs"; repo = "arviz-plots"; tag = "v${finalAttrs.version}"; hash = "sha256-x4UoUSKz+MAI082afnGhfoy2ad/hPK89Y1B2oEnxhsg="; };
build-system = [ flit-core ];
dependencies = [ arviz-base arviz-stats ] # Otherwise, import fails with "ModuleNotFoundError: No module named 'xarray_einstats'" ++ arviz-stats.optional-dependencies.xarray;
optional-dependencies = { bokeh = [ bokeh ]; doc = [ h5netcdf jupyter-sphinx myst-nb myst-parser numpydoc plotly sphinx sphinx-book-theme sphinx-copybutton sphinx-design ]; matplotlib = [ matplotlib ]; plotly = [ plotly webcolors ]; test = [ h5netcdf hypothesis kaleido pytest pytest-cov ]; };
pythonImportsCheck = [ "arviz_plots" ];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { # Prevents 'Fatal Python error: Aborted' on darwin during checkPhase MPLBACKEND = "Agg"; };
nativeCheckInputs = [ bokeh h5netcdf hypothesis matplotlib plotly pytestCheckHook webcolors ];
meta = { description = "ArviZ modular plotting"; homepage = "https://github.com/arviz-devs/arviz-plots"; changelog = "https://github.com/arviz-devs/arviz-plots/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; };})