Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 37 lines 832 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 setuptools, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "cachetools"; 12 version = "5.5.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "tkem"; 19 repo = "cachetools"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-WG9PiUMVGaEXXHKbtOFEGjLiSbNnpSI2fXCogpGj1PI="; 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}