My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/xarray/default.nix

50 lines
862 B

{ lib
, buildPythonPackage
, fetchPypi
, numpy
, pandas
, pytestCheckHook
, pythonOlder
, setuptoolsBuildHook
, setuptools-scm
}:
buildPythonPackage rec {
pname = "xarray";
version = "2022.3.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-OYNEv30XBHeqzv9wIQ4R69aa9rFW/hOXgFTSXEhylEA=";
};
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 ];
};
}