1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5, numpy 6, pandas 7, python 8}: 9 10buildPythonPackage rec { 11 pname = "xarray"; 12 version = "0.9.6"; 13 name = "${pname}-${version}"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "f649a41d43b5a6c64bdcbd57e994932656b689f9593a86dd0be95778a2b47494"; 18 }; 19 20 buildInputs = [ pytest ]; 21 propagatedBuildInputs = [numpy pandas]; 22 23 checkPhase = '' 24 py.test $out/${python.sitePackages} 25 ''; 26 27 meta = { 28 description = "N-D labeled arrays and datasets in Python"; 29 homepage = https://github.com/pydata/xarray; 30 license = lib.licenses.asl20; 31 maintainers = with lib.maintainers; [ fridh ]; 32 }; 33}