nixpkgs-suyu/pkgs/development/python-modules/xarray/default.nix
2019-04-18 21:26:09 -04:00

38 lines
726 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, numpy
, pandas
, python
, isPy3k
}:
buildPythonPackage rec {
pname = "xarray";
version = "0.12.1";
src = fetchPypi {
inherit pname version;
sha256 = "ac09a819e791be208ae33fa7ecee19d0fe7b5479906f927d358a61957ce27e10";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [numpy pandas];
checkPhase = ''
pytest $out/${python.sitePackages}
'';
# There always seem to be broken tests...
doCheck = false;
disabled = !isPy3k;
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 ];
};
}