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