From b64a7822e9a6ffbf83c7a4a0b2b73f224f33086c Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sat, 26 Oct 2024 09:15:40 -0400 Subject: [PATCH] python312Packages.radios: modernize --- pkgs/development/python-modules/radios/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/radios/default.nix b/pkgs/development/python-modules/radios/default.nix index 4bf3adde50b3..ee5d92533524 100644 --- a/pkgs/development/python-modules/radios/default.nix +++ b/pkgs/development/python-modules/radios/default.nix @@ -15,6 +15,7 @@ yarl, aresponses, pytest-asyncio, + pytest-cov-stub, pytestCheckHook, }: @@ -34,17 +35,14 @@ buildPythonPackage rec { postPatch = '' substituteInPlace pyproject.toml \ - --replace "0.0.0" "${version}" \ - --replace "--cov" "" + --replace-fail 'version = "0.0.0"' 'version = "${version}"' ''; - nativeBuildInputs = [ + build-system = [ poetry-core ]; - pythonRelaxDeps = [ "pycountry" ]; - - propagatedBuildInputs = [ + dependencies = [ aiodns aiohttp awesomeversion @@ -59,6 +57,7 @@ buildPythonPackage rec { nativeCheckInputs = [ aresponses pytest-asyncio + pytest-cov-stub pytestCheckHook ];