nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 59 lines 1.2 kB view raw
1{ 2 lib, 3 anyio, 4 buildPythonPackage, 5 curio-compat, 6 fetchFromGitHub, 7 hypothesis, 8 pytest, 9 pytestCheckHook, 10 pythonOlder, 11 poetry-core, 12 trio, 13 trio-asyncio, 14 uvloop, 15}: 16 17buildPythonPackage rec { 18 pname = "pytest-aio"; 19 version = "2.0.0"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "klen"; 24 repo = "pytest-aio"; 25 rev = "43681bcfc6d2ee07bf9397a1b42d1ccfbb891deb"; 26 hash = "sha256-IBtiy4pyXblIkYQunFO6HpBkCnBcEpTqcFtVELrULkk="; 27 }; 28 29 build-system = [ poetry-core ]; 30 31 buildInputs = [ pytest ]; 32 33 optional-dependencies = { 34 curio = [ curio-compat ]; 35 trio = [ trio ]; 36 uvloop = [ uvloop ]; 37 }; 38 39 nativeCheckInputs = [ 40 anyio 41 hypothesis 42 pytestCheckHook 43 ] 44 # https://github.com/python-trio/trio-asyncio/issues/160 45 ++ lib.optionals (pythonOlder "3.14") [ 46 trio-asyncio 47 ] 48 ++ lib.concatAttrValues optional-dependencies; 49 50 pythonImportsCheck = [ "pytest_aio" ]; 51 52 meta = { 53 description = "Pytest plugin for aiohttp support"; 54 homepage = "https://github.com/klen/pytest-aio"; 55 changelog = "https://github.com/klen/pytest-aio/blob/${version}/CHANGELOG.md"; 56 license = lib.licenses.mit; 57 maintainers = with lib.maintainers; [ fab ]; 58 }; 59}