1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
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 = pname;
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 = [
26 "pylru"
27 ];
28
29 meta = with lib; {
30 description = "A least recently used (LRU) cache implementation";
31 homepage = "https://github.com/jlhutch/pylru";
32 license = licenses.gpl2Only;
33 maintainers = with maintainers; [ abbradar ];
34 };
35}