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.4.1"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchFromGitHub { 23 owner = "klen"; 24 repo = "pytest-aio"; 25 rev = version; 26 sha256 = "pLH0yXe/KS9ohI8+hWSprP1OA3Qjki2BPqeApMPMGDs="; 27 }; 28 29 postPatch = '' 30 sed -i '/addopts/d' setup.cfg 31 ''; 32 33 buildInputs = [ 34 pytest 35 ]; 36 37 checkInputs = [ 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}