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