nixpkgs/pkgs/development/python-modules/xarray/default.nix

35 lines
731 B
Nix
Raw Normal View History

2017-04-18 09:50:55 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
2017-04-18 09:50:55 +00:00
, numpy
, pandas
, setuptools
2019-04-19 01:26:09 +00:00
, isPy3k
2021-03-22 13:33:25 +00:00
, setuptools-scm
2017-04-18 09:50:55 +00:00
}:
buildPythonPackage rec {
pname = "xarray";
version = "0.19.0";
disabled = !isPy3k;
2017-04-18 09:50:55 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "3a365ce09127fc841ba88baa63f37ca61376ffe389a6c5e66d52f2c88c23a62b";
2017-04-18 09:50:55 +00:00
};
2021-03-22 13:33:25 +00:00
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ numpy pandas setuptools ];
checkInputs = [ pytestCheckHook ];
2017-04-18 09:50:55 +00:00
pythonImportsCheck = [ "xarray" ];
2017-04-18 09:50:55 +00:00
meta = {
description = "N-D labeled arrays and datasets in Python";
homepage = "https://github.com/pydata/xarray";
2017-04-18 09:50:55 +00:00
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fridh ];
};
}