1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "pylru";
11 version = "1.2.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "jlhutch";
18 repo = pname;
19 rev = "v${version}";
20 hash = "sha256-dTYiD+/zt0ZSP+sefYyeD87To1nRXyoFodlBg8pm1YE=";
21 };
22
23 # Check with the next release if tests are ready
24 doCheck = false;
25
26 pythonImportsCheck = [ "pylru" ];
27
28 meta = with lib; {
29 description = "A least recently used (LRU) cache implementation";
30 homepage = "https://github.com/jlhutch/pylru";
31 license = licenses.gpl2Only;
32 maintainers = with maintainers; [ abbradar ];
33 };
34}