nixpkgs/pkgs/development/python-modules/xarray/default.nix
2022-01-10 17:51:41 -05:00

51 lines
860 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, numpy
, pandas
, pytestCheckHook
, pythonOlder
, setuptoolsBuildHook
, setuptools-scm
}:
buildPythonPackage rec {
pname = "xarray";
version = "0.20.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-wuvoDKgbEKAkH2h23MNKyWluXFzc30dY2nz0vXMsQfc=";
};
SETUPTOOLS_SCM_PRETEND_VERSION="${version}";
nativeBuildInputs = [
setuptoolsBuildHook
setuptools-scm
];
propagatedBuildInputs = [
numpy
pandas
];
checkInputs = [
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 ];
};
}