1{ lib
2, anyio
3, buildPythonPackage
4, curio
5, fetchFromGitHub
6, hypothesis
7, pytest
8, pytestCheckHook
9, pythonOlder
10, sniffio
11, trio
12, trio-asyncio
13}:
14
15buildPythonPackage rec {
16 pname = "pytest-aio";
17 version = "1.5.0";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "klen";
24 repo = "pytest-aio";
25 rev = "refs/tags/${version}";
26 hash = "sha256-BIVorMRWyboKFZCiELoBh/1oxSpdV263zfLce1fNVhU=";
27 };
28
29 postPatch = ''
30 sed -i '/addopts/d' setup.cfg
31 '';
32
33 buildInputs = [
34 pytest
35 ];
36
37 nativeCheckInputs = [
38 anyio
39 curio
40 hypothesis
41 pytestCheckHook
42 sniffio
43 trio
44 trio-asyncio
45 ];
46
47 pythonImportsCheck = [
48 "pytest_aio"
49 ];
50
51 meta = with lib; {
52 homepage = "https://github.com/klen/pytest-aio";
53 description = "Pytest plugin for aiohttp support";
54 license = licenses.mit;
55 maintainers = with maintainers; [ fab ];
56 };
57}