{ lib, buildPythonPackage, fetchFromGitHub, setuptools, setuptools-scm, numpy, pint, xarray, pytestCheckHook, }: buildPythonPackage rec { pname = "pint-xarray"; version = "0.4"; pyproject = true; src = fetchFromGitHub { owner = "xarray-contrib"; repo = "pint-xarray"; tag = "v${version}"; hash = "sha256-IFHSgrnqS7ZpNhRzzSgHPRUP90WNv84jBH4um/DRMCU="; }; build-system = [ setuptools setuptools-scm ]; dependencies = [ numpy pint xarray ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pint_xarray" ]; meta = { description = "Interface for using pint with xarray, providing convenience accessors"; homepage = "https://github.com/xarray-contrib/pint-xarray"; changelog = "https://github.com/xarray-contrib/pint-xarray/blob/v${version}/docs/whats-new.rst"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ doronbehar ]; }; }