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