diff options
Diffstat (limited to 'pkgs/development/python-modules/xarray/default.nix')
-rw-r--r-- | pkgs/development/python-modules/xarray/default.nix | 56 |
1 files changed, 27 insertions, 29 deletions
diff --git a/pkgs/development/python-modules/xarray/default.nix b/pkgs/development/python-modules/xarray/default.nix index ad904dd6e60b..96540a3484b6 100644 --- a/pkgs/development/python-modules/xarray/default.nix +++ b/pkgs/development/python-modules/xarray/default.nix @@ -1,56 +1,54 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flaky -, numpy -, packaging -, pandas -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + packaging, + pandas, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { pname = "xarray"; - version = "2024.2.0"; + version = "2024.10.0"; pyproject = true; - disabled = pythonOlder "3.9"; + disabled = pythonOlder "3.10"; - src = fetchPypi { - inherit pname version; - hash = "sha256-oQXwJ5EILIiOviYiCQvq/y57aFcUiNYv5q/as1tLcX8="; + src = fetchFromGitHub { + owner = "pydata"; + repo = "xarray"; + rev = "refs/tags/v${version}"; + hash = "sha256-s5MvHp2OkomD3xNYzj9oKlVLMgHZDQRBJM6vgOAv1jQ="; }; - nativeBuildInputs = [ + build-system = [ setuptools setuptools-scm ]; - propagatedBuildInputs = [ + dependencies = [ numpy packaging pandas ]; nativeCheckInputs = [ - flaky pytestCheckHook ]; - pytestFlagsArray =[ - # ModuleNotFoundError: No module named 'xarray.datatree_' - "--ignore xarray/tests/datatree" - ]; - - pythonImportsCheck = [ - "xarray" - ]; + pythonImportsCheck = [ "xarray" ]; - meta = with lib; { + meta = { + changelog = "https://github.com/pydata/xarray/blob/${src.rev}/doc/whats-new.rst"; description = "N-D labeled arrays and datasets in Python"; homepage = "https://github.com/pydata/xarray"; - license = licenses.asl20; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ + doronbehar + ]; }; } |