1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, numpy 6, pandas 7, setuptools 8, isPy3k 9, setuptools-scm 10}: 11 12buildPythonPackage rec { 13 pname = "xarray"; 14 version = "0.20.1"; 15 disabled = !isPy3k; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "9c0bffd8b55fdef277f8f6c817153eb51fa4e58653a7ad92eaed9984164b7bdb"; 20 }; 21 22 nativeBuildInputs = [ setuptools-scm ]; 23 propagatedBuildInputs = [ numpy pandas setuptools ]; 24 checkInputs = [ pytestCheckHook ]; 25 26 pythonImportsCheck = [ "xarray" ]; 27 28 meta = { 29 description = "N-D labeled arrays and datasets in Python"; 30 homepage = "https://github.com/pydata/xarray"; 31 license = lib.licenses.asl20; 32 maintainers = with lib.maintainers; [ fridh ]; 33 }; 34}