Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 anyio, 4 buildPythonPackage, 5 curio, 6 fetchFromGitHub, 7 hypothesis, 8 pytest, 9 pytestCheckHook, 10 pythonOlder, 11 poetry-core, 12 sniffio, 13 trio, 14 trio-asyncio, 15}: 16 17buildPythonPackage rec { 18 pname = "pytest-aio"; 19 version = "1.8.1"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.7"; 23 24 src = fetchFromGitHub { 25 owner = "klen"; 26 repo = "pytest-aio"; 27 rev = "refs/tags/${version}"; 28 hash = "sha256-MexIL9yFTzhkJ/61GgYoT54MWV8B0c1/CWkN5FVTvnw="; 29 }; 30 31 build-system = [ poetry-core ]; 32 33 buildInputs = [ pytest ]; 34 35 dependencies = [ 36 anyio 37 curio 38 hypothesis 39 sniffio 40 trio 41 trio-asyncio 42 ]; 43 44 nativeCheckInputs = [ pytestCheckHook ]; 45 46 pythonImportsCheck = [ "pytest_aio" ]; 47 48 meta = with lib; { 49 description = "Pytest plugin for aiohttp support"; 50 homepage = "https://github.com/klen/pytest-aio"; 51 changelog = "https://github.com/klen/pytest-aio/blob/${version}/CHANGELOG.md"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ fab ]; 54 }; 55}