Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 754 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5, numpy 6, pandas 7, python 8, setuptools 9, isPy3k 10}: 11 12buildPythonPackage rec { 13 pname = "xarray"; 14 version = "0.16.1"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "5e1af056ff834bf62ca57da917159328fab21b1f8c25284f92083016bb2d92a5"; 19 }; 20 21 checkInputs = [ pytest ]; 22 propagatedBuildInputs = [ numpy pandas setuptools ]; 23 24 checkPhase = '' 25 pytest $out/${python.sitePackages} 26 ''; 27 28 # There always seem to be broken tests... 29 doCheck = false; 30 31 disabled = !isPy3k; 32 33 meta = { 34 description = "N-D labeled arrays and datasets in Python"; 35 homepage = "https://github.com/pydata/xarray"; 36 license = lib.licenses.asl20; 37 maintainers = with lib.maintainers; [ fridh ]; 38 }; 39}