diff --git a/pkgs/development/python-modules/pytest-aio/default.nix b/pkgs/development/python-modules/pytest-aio/default.nix index 322de9c8746f..ef643d765a7a 100644 --- a/pkgs/development/python-modules/pytest-aio/default.nix +++ b/pkgs/development/python-modules/pytest-aio/default.nix @@ -1,21 +1,23 @@ -{ lib -, anyio -, buildPythonPackage -, curio -, fetchFromGitHub -, hypothesis -, pytest -, pytestCheckHook -, pythonOlder -, sniffio -, trio -, trio-asyncio +{ + lib, + anyio, + buildPythonPackage, + curio, + fetchFromGitHub, + hypothesis, + pytest, + pytestCheckHook, + pythonOlder, + poetry-core, + sniffio, + trio, + trio-asyncio, }: buildPythonPackage rec { pname = "pytest-aio"; - version = "1.5.0"; - format = "setuptools"; + version = "1.8.1"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -23,34 +25,30 @@ 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 - ]; + buildInputs = [ pytest ]; - nativeCheckInputs = [ + dependencies = [ anyio curio hypothesis - pytestCheckHook sniffio trio trio-asyncio ]; - pythonImportsCheck = [ - "pytest_aio" - ]; + 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 ]; };