From 36ba4c15c79b70d624abac78c72ce3852561c519 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 13 Apr 2024 00:58:49 +0200 Subject: [PATCH] python312Packages.pytest-aio: 1.5.0 -> 1.8.1 Diff: https://github.com/klen/pytest-aio/compare/refs/tags/1.5.0...1.8.1 Changelog: https://github.com/klen/pytest-aio/blob/1.8.1/CHANGELOG.md --- .../python-modules/pytest-aio/default.nix | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) 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 ]; };