1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytest-xprocess
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "cachelib";
11 version = "0.9.0";
12 disabled = pythonOlder "3.6";
13
14 src = fetchFromGitHub {
15 owner = "pallets";
16 repo = pname;
17 rev = "refs/tags/${version}";
18 sha256 = "sha256-LO1VdirKWXIAy3U8oRtnFI58qO+yn6Vm5bZdCjdgKwo=";
19 };
20
21 checkInputs = [
22 pytest-xprocess
23 pytestCheckHook
24 ];
25
26 pythonImportsCheck = [ "cachelib" ];
27
28 meta = with lib; {
29 homepage = "https://github.com/pallets/cachelib";
30 description = "Collection of cache libraries in the same API interface";
31 license = licenses.bsd3;
32 maintainers = with maintainers; [ gebner ];
33 };
34}