mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
36 lines
695 B
Nix
36 lines
695 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
, numpy
|
|
, pandas
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xarray";
|
|
version = "0.10.9";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "cb3028ba157e1953fd279bbe17c07bb5faa459ddf555bbe687c927e4cdfeecc3";
|
|
};
|
|
|
|
checkInputs = [ pytest ];
|
|
propagatedBuildInputs = [numpy pandas];
|
|
|
|
checkPhase = ''
|
|
py.test $out/${python.sitePackages}
|
|
'';
|
|
|
|
# There always seem to be broken tests...
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
};
|
|
}
|