{ lib, buildPythonPackage, fetchFromGitHub, numpy, packaging, pandas, pytestCheckHook, pythonOlder, setuptools, setuptools-scm, }: buildPythonPackage rec { pname = "xarray"; version = "2025.07.1"; pyproject = true; disabled = pythonOlder "3.10"; src = fetchFromGitHub { owner = "pydata"; repo = "xarray"; tag = "v${version}"; hash = "sha256-UvBRGYZFkjxUYT+S4By+7xQZW6h0usQ26iFeJvWcxo0="; }; postPatch = '' # don't depend on pytest-mypy-plugins sed -i "/--mypy-/d" pyproject.toml ''; build-system = [ setuptools setuptools-scm ]; dependencies = [ numpy packaging pandas ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "xarray" ]; meta = { changelog = "https://github.com/pydata/xarray/blob/${src.tag}/doc/whats-new.rst"; description = "N-D labeled arrays and datasets in Python"; homepage = "https://github.com/pydata/xarray"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ doronbehar ]; }; }