1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 pythonOlder,
6 setuptools,
7 pytestCheckHook,
8 pytest-asyncio,
9 pytest-cov-stub,
10}:
11
12buildPythonPackage rec {
13 pname = "async-timeout";
14 version = "5.0.1";
15 pyproject = true;
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchFromGitHub {
20 owner = "aio-libs";
21 repo = "async-timeout";
22 tag = "v${version}";
23 hash = "sha256-lsSoIv2SnAJbv7V1eRognjv0cCQONwJMlb6fum9wQ/s=";
24 };
25
26 build-system = [ setuptools ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 pytest-asyncio
31 pytest-cov-stub
32 ];
33
34 meta = {
35 description = "Timeout context manager for asyncio programs";
36 homepage = "https://github.com/aio-libs/async_timeout/";
37 license = lib.licenses.asl20;
38 };
39}