1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 setuptools, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "cachetools"; 12 version = "6.1.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "tkem"; 19 repo = "cachetools"; 20 tag = "v${version}"; 21 hash = "sha256-o3Ice6w7Ovot+nsmTpsl/toosZuVbi9RvRGs07W4H0Y="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "cachetools" ]; 29 30 meta = with lib; { 31 description = "Extensible memoizing collections and decorators"; 32 homepage = "https://github.com/tkem/cachetools"; 33 changelog = "https://github.com/tkem/cachetools/blob/v${version}/CHANGELOG.rst"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}