diff --git a/pkgs/development/python-modules/pytest-aio/default.nix b/pkgs/development/python-modules/pytest-aio/default.nix index 322de9c8746f..0b763ed74086 100644 --- a/pkgs/development/python-modules/pytest-aio/default.nix +++ b/pkgs/development/python-modules/pytest-aio/default.nix @@ -7,6 +7,7 @@ , pytest , pytestCheckHook , pythonOlder +, poetry-core , sniffio , trio , trio-asyncio @@ -14,8 +15,8 @@ buildPythonPackage rec { pname = "pytest-aio"; - version = "1.5.0"; - format = "setuptools"; + version = "1.8.1"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -23,34 +24,38 @@ buildPythonPackage rec { owner = "klen"; repo = "pytest-aio"; rev = "refs/tags/${version}"; - hash = "sha256-BIVorMRWyboKFZCiELoBh/1oxSpdV263zfLce1fNVhU="; + hash = "sha256-MexIL9yFTzhkJ/61GgYoT54MWV8B0c1/CWkN5FVTvnw="; }; - postPatch = '' - sed -i '/addopts/d' setup.cfg - ''; + build-system = [ + poetry-core + ]; buildInputs = [ pytest ]; - nativeCheckInputs = [ + dependencies = [ anyio curio hypothesis - pytestCheckHook sniffio trio trio-asyncio ]; + nativeCheckInputs = [ + pytestCheckHook + ]; + pythonImportsCheck = [ "pytest_aio" ]; meta = with lib; { - homepage = "https://github.com/klen/pytest-aio"; description = "Pytest plugin for aiohttp support"; + homepage = "https://github.com/klen/pytest-aio"; + changelog = "https://github.com/klen/pytest-aio/blob/${version}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };