1{ lib
2, buildPythonPackage
3, isPy27
4, fetchFromGitHub
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "cachetools";
10 version = "4.2.1";
11
12 disabled = isPy27;
13
14 src = fetchFromGitHub {
15 owner = "tkem";
16 repo = pname;
17 rev = "v${version}";
18 sha256 = "1b662ph8m2d05d2vi3izgnr6v7h9zfvscfsaaw8nhdmmm15ivfa6";
19 };
20
21 checkInputs = [ pytestCheckHook ];
22
23 pythonImportsCheck = [ "cachetools" ];
24
25 meta = with lib; {
26 description = "Extensible memoizing collections and decorators";
27 homepage = "https://github.com/tkem/cachetools";
28 license = with licenses; [ mit ];
29 maintainers = with maintainers; [ fab ];
30 };
31}