1{ lib 2, buildPythonPackage 3, fetchPypi 4, numpy 5, packaging 6, pandas 7, pytestCheckHook 8, pythonOlder 9, setuptoolsBuildHook 10, setuptools-scm 11}: 12 13buildPythonPackage rec { 14 pname = "xarray"; 15 version = "2022.6.0"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "sha256-ECjRmEk/ZrsVvTXc/dEd79gxy+469lif/xb0G93WfoQ="; 23 }; 24 25 SETUPTOOLS_SCM_PRETEND_VERSION="${version}"; 26 27 nativeBuildInputs = [ 28 setuptoolsBuildHook 29 setuptools-scm 30 ]; 31 32 propagatedBuildInputs = [ 33 numpy 34 packaging 35 pandas 36 ]; 37 38 checkInputs = [ 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ 43 "xarray" 44 ]; 45 46 meta = with lib; { 47 description = "N-D labeled arrays and datasets in Python"; 48 homepage = "https://github.com/pydata/xarray"; 49 license = licenses.asl20; 50 maintainers = with maintainers; [ fridh ]; 51 }; 52}