{ lib, buildPythonPackage, fetchFromGitHub, setuptools, setuptools-scm, pytestCheckHook, }: buildPythonPackage rec { pname = "cachetools"; version = "7.1.4"; pyproject = true; src = fetchFromGitHub { owner = "tkem"; repo = "cachetools"; tag = "v${version}"; hash = "sha256-zgIUNzDVQMBjaaEitD3ACVd8ZXCeXu3MBTEapzH5sSY="; }; build-system = [ setuptools setuptools-scm ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "cachetools" ]; meta = { description = "Extensible memoizing collections and decorators"; homepage = "https://github.com/tkem/cachetools"; changelog = "https://github.com/tkem/cachetools/blob/v${version}/CHANGELOG.rst"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; }