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