Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 7 # build-system 8 setuptools, 9 10 # tests 11 pytestCheckHook, 12}: 13 14buildPythonPackage rec { 15 pname = "cachetools"; 16 version = "5.3.2"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "tkem"; 23 repo = pname; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-CmyAW9uV63OV/zZsWwZkXOWbHfHAJdYFGJsRhpqQ1f4="; 26 }; 27 28 nativeBuildInputs = [ setuptools ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "cachetools" ]; 33 34 meta = with lib; { 35 description = "Extensible memoizing collections and decorators"; 36 homepage = "https://github.com/tkem/cachetools"; 37 changelog = "https://github.com/tkem/cachetools/blob/v${version}/CHANGELOG.rst"; 38 license = with licenses; [ mit ]; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}