1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "pytest-asyncio-cooperative";
11 version = "0.40.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "willemt";
16 repo = "pytest-asyncio-cooperative";
17 tag = "v${version}";
18 hash = "sha256-WA2swhgpn7Ct409tk91gQiHUZCXQLO0eznqskOVlU1U=";
19 };
20
21 build-system = [ poetry-core ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24 disabledTestPaths = [
25 "example/hypothesis_test.py"
26 ];
27 disabledTests = [
28 "test_tmp_path"
29 "test_session_scope_gen"
30 "test_session_scope_async_gen"
31 "test_retry"
32 ];
33
34 pythonImportsCheck = [ "pytest_asyncio_cooperative" ];
35
36 meta = {
37 description = "Use asyncio to run your I/O bound test suite efficiently and quickly";
38 homepage = "https://github.com/willemt/pytest-asyncio-cooperative";
39 changelog = "https://github.com/willemt/pytest-asyncio-cooperative/releases/tag/v${version}";
40 license = lib.licenses.bsd3;
41 maintainers = with lib.maintainers; [ jherland ];
42 };
43}