depot/third_party/nixpkgs/pkgs/development/python-modules/xarray/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

50 lines
822 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, numpy
, packaging
, pandas
, pytestCheckHook
, pythonOlder
, setuptools
, setuptools-scm
}:
buildPythonPackage rec {
pname = "xarray";
version = "2024.1.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-oboth6dIkuITycg/SkYtvN9oISMgpOMbNL14m6emTjU=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
numpy
packaging
pandas
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"xarray"
];
meta = with lib; {
description = "N-D labeled arrays and datasets in Python";
homepage = "https://github.com/pydata/xarray";
license = licenses.asl20;
maintainers = with maintainers; [ fridh ];
};
}