From fe2dbc4647f5f841a4e5da49a002024bb3de8e4c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 2 Jan 2022 00:37:09 +0100 Subject: [PATCH] python3Packages.xarray: 0.20.1 -> 0.20.2 --- .../python-modules/xarray/default.nix | 40 +++++++++++++------ 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/xarray/default.nix b/pkgs/development/python-modules/xarray/default.nix index 602bbac89aec..37fb5edf7011 100644 --- a/pkgs/development/python-modules/xarray/default.nix +++ b/pkgs/development/python-modules/xarray/default.nix @@ -1,34 +1,48 @@ { lib , buildPythonPackage , fetchPypi -, pytestCheckHook , numpy , pandas +, pytestCheckHook +, pythonOlder , setuptools -, isPy3k -, setuptools-scm +, setuptoolsBuildHook }: buildPythonPackage rec { pname = "xarray"; - version = "0.20.1"; - disabled = !isPy3k; + version = "0.20.2"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "9c0bffd8b55fdef277f8f6c817153eb51fa4e58653a7ad92eaed9984164b7bdb"; + sha256 = "sha256-wuvoDKgbEKAkH2h23MNKyWluXFzc30dY2nz0vXMsQfc="; }; - nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ numpy pandas setuptools ]; - checkInputs = [ pytestCheckHook ]; + nativeBuildInputs = [ + setuptoolsBuildHook + ]; - pythonImportsCheck = [ "xarray" ]; + propagatedBuildInputs = [ + numpy + pandas + setuptools + ]; - meta = { + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "xarray" + ]; + + meta = with lib; { description = "N-D labeled arrays and datasets in Python"; homepage = "https://github.com/pydata/xarray"; - license = lib.licenses.asl20; - maintainers = with lib.maintainers; [ fridh ]; + license = licenses.asl20; + maintainers = with maintainers; [ fridh ]; }; }