Files
nixpkgs/pkgs/development/python-modules/cf-xarray/default.nix
T
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

77 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
dask,
fetchFromGitHub,
matplotlib,
pint,
pooch,
pytestCheckHook,
pythonOlder,
regex,
rich,
scipy,
setuptools,
setuptools-scm,
shapely,
wheel,
xarray,
}:
buildPythonPackage rec {
pname = "cf-xarray";
version = "0.9.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "xarray-contrib";
repo = "cf-xarray";
rev = "refs/tags/v${version}";
hash = "sha256-Og84lB99576G3IZz8LNafF86TyYP+ooe2tL8wb60RPw=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
wheel
xarray
];
propagatedBuildInputs = [ xarray ];
passthru.optional-dependencies = {
all = [
matplotlib
pint
pooch
regex
rich
shapely
];
};
nativeCheckInputs = [
dask
pytestCheckHook
scipy
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [ "cf_xarray" ];
disabledTestPaths = [
# Tests require network access
"cf_xarray/tests/test_accessor.py"
"cf_xarray/tests/test_helpers.py"
];
meta = with lib; {
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/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}