1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest-xprocess 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "cachelib"; 11 version = "0.10.2"; 12 disabled = pythonOlder "3.6"; 13 14 src = fetchFromGitHub { 15 owner = "pallets"; 16 repo = pname; 17 rev = "refs/tags/${version}"; 18 hash = "sha256-2V2FvZC8jM84fZEdK9ShzFrjO8goOQsN6cnJTHDDL9E="; 19 }; 20 21 nativeCheckInputs = [ 22 pytest-xprocess 23 pytestCheckHook 24 ]; 25 26 disabledTestPaths = [ 27 # requires set up local server 28 "tests/test_dynamodb_cache.py" 29 ]; 30 31 pythonImportsCheck = [ "cachelib" ]; 32 33 meta = with lib; { 34 homepage = "https://github.com/pallets/cachelib"; 35 description = "Collection of cache libraries in the same API interface"; 36 license = licenses.bsd3; 37 maintainers = with maintainers; [ gebner ]; 38 }; 39}