1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 flaky, 6 numpy, 7 packaging, 8 pandas, 9 pytestCheckHook, 10 pythonOlder, 11 setuptools, 12 setuptools-scm, 13}: 14 15buildPythonPackage rec { 16 pname = "xarray"; 17 version = "2024.2.0"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.9"; 21 22 src = fetchPypi { 23 inherit pname version; 24 hash = "sha256-oQXwJ5EILIiOviYiCQvq/y57aFcUiNYv5q/as1tLcX8="; 25 }; 26 27 nativeBuildInputs = [ 28 setuptools 29 setuptools-scm 30 ]; 31 32 propagatedBuildInputs = [ 33 numpy 34 packaging 35 pandas 36 ]; 37 38 nativeCheckInputs = [ 39 flaky 40 pytestCheckHook 41 ]; 42 43 pytestFlagsArray = [ 44 # ModuleNotFoundError: No module named 'xarray.datatree_' 45 "--ignore xarray/tests/datatree" 46 ]; 47 48 pythonImportsCheck = [ "xarray" ]; 49 50 meta = with lib; { 51 description = "N-D labeled arrays and datasets in Python"; 52 homepage = "https://github.com/pydata/xarray"; 53 license = licenses.asl20; 54 }; 55}