depot/third_party/nixpkgs/pkgs/development/python-modules/xarray/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

52 lines
889 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, numpy
, packaging
, pandas
, pytestCheckHook
, pythonOlder
, setuptoolsBuildHook
, setuptools-scm
}:
buildPythonPackage rec {
pname = "xarray";
version = "2023.7.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-2s4v2/G3/xhdnBImokv4PCrlLzJT2/6A4X0RYmANBVw=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptoolsBuildHook
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 ];
};
}