mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 11:33:31 +00:00
0215034f25
when they already rely on SRI hashes.
53 lines
892 B
Nix
53 lines
892 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, numpy
|
|
, packaging
|
|
, pandas
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptoolsBuildHook
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xarray";
|
|
version = "2023.2.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-qnYFAKLY+L6O/Y87J6lLKvOwqMLANzR9WV6vb/Cdinc=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|