2017-04-18 09:50:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, python
|
2019-04-19 01:26:09 +00:00
|
|
|
, isPy3k
|
2017-04-18 09:50:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xarray";
|
2019-04-16 17:15:42 +00:00
|
|
|
version = "0.12.1";
|
2017-04-18 09:50:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-16 17:15:42 +00:00
|
|
|
sha256 = "ac09a819e791be208ae33fa7ecee19d0fe7b5479906f927d358a61957ce27e10";
|
2017-04-18 09:50:55 +00:00
|
|
|
};
|
|
|
|
|
2017-12-31 13:14:52 +00:00
|
|
|
checkInputs = [ pytest ];
|
2017-04-18 09:50:55 +00:00
|
|
|
propagatedBuildInputs = [numpy pandas];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2019-04-19 01:26:09 +00:00
|
|
|
pytest $out/${python.sitePackages}
|
2017-04-18 09:50:55 +00:00
|
|
|
'';
|
|
|
|
|
2017-12-31 13:14:52 +00:00
|
|
|
# There always seem to be broken tests...
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-04-18 07:19:07 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2017-04-18 09:50:55 +00:00
|
|
|
meta = {
|
|
|
|
description = "N-D labeled arrays and datasets in Python";
|
|
|
|
homepage = https://github.com/pydata/xarray;
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
|
|
|
}
|