1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8}:
9
10let
11 pname = "lru-dict";
12 version = "1.3.0";
13in
14buildPythonPackage {
15 inherit pname version;
16 pyproject = true;
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-VP0ZZta9H83ngVlsuGBoIU7e6/8dsTos6hEHnj/Qe2s=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "lru" ];
30
31 meta = with lib; {
32 description = "Fast and memory efficient LRU cache for Python";
33 homepage = "https://github.com/amitdev/lru-dict";
34 changelog = "https://github.com/amitdev/lru-dict/releases/tag/v${version}";
35 license = licenses.mit;
36 maintainers = with maintainers; [ hexa ];
37 };
38}