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

34 lines
662 B
Nix
Raw Normal View History

2017-04-18 10:50:55 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, numpy
, pandas
, python
}:
buildPythonPackage rec {
pname = "xarray";
2017-06-19 12:43:19 +01:00
version = "0.9.6";
2017-04-18 10:50:55 +01:00
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
2017-06-19 12:43:19 +01:00
sha256 = "f649a41d43b5a6c64bdcbd57e994932656b689f9593a86dd0be95778a2b47494";
2017-04-18 10:50:55 +01:00
};
buildInputs = [ pytest ];
propagatedBuildInputs = [numpy pandas];
checkPhase = ''
py.test $out/${python.sitePackages}
'';
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 ];
};
}