Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 79 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools, setuptools-scm, xarray,
# optional-dependencies matplotlib, pint, pooch, regex, rich, shapely,
# tests dask, pytestCheckHook, scipy,}:
buildPythonPackage rec { pname = "cf-xarray"; version = "0.10.6"; pyproject = true;
src = fetchFromGitHub { owner = "xarray-contrib"; repo = "cf-xarray"; tag = "v${version}"; hash = "sha256-zBjNOWDuO6yZNwD4Sv69X2i9ajUGIqvjlRA3gqmtgU8="; };
build-system = [ setuptools setuptools-scm xarray ];
dependencies = [ xarray ];
optional-dependencies = { all = [ matplotlib pint pooch regex rich shapely ]; };
nativeCheckInputs = [ dask pytestCheckHook scipy ] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "cf_xarray" ];
disabledTestPaths = [ # Tests require network access "cf_xarray/tests/test_accessor.py" "cf_xarray/tests/test_groupers.py" "cf_xarray/tests/test_helpers.py" ];
meta = { description = "Accessor for xarray objects that interprets CF attributes"; homepage = "https://github.com/xarray-contrib/cf-xarray"; changelog = "https://github.com/xarray-contrib/cf-xarray/releases/tag/${src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; };}