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