diff options
Diffstat (limited to 'pkgs/development/python-modules/cf-xarray/default.nix')
-rw-r--r-- | pkgs/development/python-modules/cf-xarray/default.nix | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/pkgs/development/python-modules/cf-xarray/default.nix b/pkgs/development/python-modules/cf-xarray/default.nix index f7ee7ccd18319..a60f3f0e4aefd 100644 --- a/pkgs/development/python-modules/cf-xarray/default.nix +++ b/pkgs/development/python-modules/cf-xarray/default.nix @@ -1,47 +1,48 @@ { lib, buildPythonPackage, - dask, fetchFromGitHub, + + # build-system + setuptools, + setuptools-scm, + xarray, + + # optional-dependencies matplotlib, pint, pooch, - pytestCheckHook, - pythonOlder, regex, rich, - scipy, - setuptools, - setuptools-scm, shapely, - wheel, - xarray, + + # checks + dask, + pytestCheckHook, + scipy, }: buildPythonPackage rec { pname = "cf-xarray"; - version = "0.9.1"; + version = "0.9.5"; pyproject = true; - disabled = pythonOlder "3.9"; - src = fetchFromGitHub { owner = "xarray-contrib"; repo = "cf-xarray"; rev = "refs/tags/v${version}"; - hash = "sha256-Og84lB99576G3IZz8LNafF86TyYP+ooe2tL8wb60RPw="; + hash = "sha256-Rz0E7GBaN/7zb0dqAxo0SJ4Bd+eQuOOv6x1WubIUh6A="; }; - nativeBuildInputs = [ + build-system = [ setuptools setuptools-scm - wheel xarray ]; - propagatedBuildInputs = [ xarray ]; + dependencies = [ xarray ]; - passthru.optional-dependencies = { + optional-dependencies = { all = [ matplotlib pint @@ -56,7 +57,7 @@ buildPythonPackage rec { dask pytestCheckHook scipy - ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); + ] ++ lib.flatten (builtins.attrValues optional-dependencies); pythonImportsCheck = [ "cf_xarray" ]; @@ -66,11 +67,11 @@ buildPythonPackage rec { "cf_xarray/tests/test_helpers.py" ]; - meta = with lib; { + 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/v${version}"; - license = licenses.asl20; - maintainers = with maintainers; [ fab ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ fab ]; }; } |