Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ lib, buildPythonPackage, arviz, fetchFromGitHub,
# build-system flit-core,
# dependencies lazy-loader, numpy, typing-extensions, xarray,
# optional-dependencies h5netcdf, netcdf4, zarr,
# tests pytestCheckHook, writableTmpDirAsHomeHook,}:
buildPythonPackage (finalAttrs: { pname = "arviz-base"; inherit (arviz) version; pyproject = true; __structuredAttrs = true;
src = fetchFromGitHub { owner = "arviz-devs"; repo = "arviz-base"; tag = "v${finalAttrs.version}"; hash = "sha256-viGjQrAeelzC7DBqMA4kltBllDAXJvymWdntOMYapEA="; };
build-system = [ flit-core ];
dependencies = [ lazy-loader numpy typing-extensions xarray ];
optional-dependencies = { h5netcdf = [ h5netcdf ]; netcdf4 = [ netcdf4 ]; zarr = [ zarr ]; };
pythonImportsCheck = [ "arviz_base" ];
nativeCheckInputs = [ h5netcdf netcdf4 pytestCheckHook writableTmpDirAsHomeHook ];
pytestFlags = [ # DeprecationWarning: Setting the shape on a NumPy array has been deprecated in NumPy 2.5. "-Wignore::DeprecationWarning" ];
meta = { description = "Base ArviZ features and converters"; homepage = "https://github.com/arviz-devs/arviz-base"; changelog = "https://github.com/arviz-devs/arviz-base/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; };})