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