blob: 3c0f1ded70aec2e1fd28b97f06ea58e32f24bb9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
fetchpatch2,
setuptools,
typing-extensions,
pytestCheckHook,
pytest-asyncio,
pytest-cov-stub,
pytest-timeout,
}:
buildPythonPackage rec {
pname = "async-lru";
version = "2.0.5";
pyproject = true;
src = fetchFromGitHub {
owner = "aio-libs";
repo = "async-lru";
tag = "v${version}";
hash = "sha256-FJ1q6W9IYs0OSMZc+bI4v22hOAAWAv2OW3BAqixm8Hs=";
};
patches = [
(fetchpatch2 {
# https://github.com/aio-libs/async-lru/issues/635
name = "python314-compatibility.patch";
url = "https://github.com/aio-libs/async-lru/commit/4df3785d3e5210ce6277b3137c4625cd73918088.patch";
hash = "sha256-B9KCJPbiZTQJrnxC/7VI+jgr2PKfwOmS7naXZwKtF9c=";
})
];
build-system = [ setuptools ];
dependencies = lib.optionals (pythonOlder "3.11") [ typing-extensions ];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
pytest-cov-stub
pytest-timeout
];
pythonImportsCheck = [ "async_lru" ];
meta = {
changelog = "https://github.com/aio-libs/async-lru/releases/tag/${src.tag}";
description = "Simple lru cache for asyncio";
homepage = "https://github.com/wikibusiness/async_lru";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|