Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 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.15.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "c72d160c970725201f769e80fb91cbad68d6ebf21d68fcc371385a6c950459c3"; 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}