depot/third_party/nixpkgs/pkgs/development/python-modules/xarray/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

52 lines
845 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, numpy
, packaging
, pandas
, pytestCheckHook
, pythonOlder
, setuptools
, setuptools-scm
, wheel
}:
buildPythonPackage rec {
pname = "xarray";
version = "2023.11.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-mkXhB0GES1+UjY4edotGDffpBpbRji7/LB1H9dnVAlI=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];
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 ];
};
}