diff --git a/pkgs/development/python-modules/xarray/default.nix b/pkgs/development/python-modules/xarray/default.nix index d905a11e341..a245efe7e48 100644 --- a/pkgs/development/python-modules/xarray/default.nix +++ b/pkgs/development/python-modules/xarray/default.nix @@ -1,34 +1,27 @@ { lib , buildPythonPackage , fetchPypi -, pytest +, pytestCheckHook , numpy , pandas -, python , setuptools , isPy3k }: buildPythonPackage rec { pname = "xarray"; - version = "0.16.1"; + version = "0.16.2"; + disabled = !isPy3k; src = fetchPypi { inherit pname version; - sha256 = "5e1af056ff834bf62ca57da917159328fab21b1f8c25284f92083016bb2d92a5"; + sha256 = "sha256-OOhDnWyRvNW3wPyjSdr44GQ6xohQyYcmLVNSbp19AeQ="; }; - checkInputs = [ pytest ]; propagatedBuildInputs = [ numpy pandas setuptools ]; + checkInputs = [ pytestCheckHook ]; - checkPhase = '' - pytest $out/${python.sitePackages} - ''; - - # There always seem to be broken tests... - doCheck = false; - - disabled = !isPy3k; + pythonImportsCheck = [ "xarray" ]; meta = { description = "N-D labeled arrays and datasets in Python";