From 6ad0478bbe6aca440f33aa06fcbed5f3059e2c19 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 26 Oct 2024 03:29:43 +0000 Subject: [PATCH 1/2] python312Packages.radios: 0.3.1 -> 0.3.2 --- pkgs/development/python-modules/radios/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/radios/default.nix b/pkgs/development/python-modules/radios/default.nix index 241e95a189852..4bf3adde50b30 100644 --- a/pkgs/development/python-modules/radios/default.nix +++ b/pkgs/development/python-modules/radios/default.nix @@ -20,7 +20,7 @@ buildPythonPackage rec { pname = "radios"; - version = "0.3.1"; + version = "0.3.2"; pyproject = true; disabled = pythonOlder "3.11"; @@ -28,8 +28,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "frenck"; repo = "python-radios"; - rev = "v${version}"; - hash = "sha256-c0zfpfEdZvjvKtwGcNLLgEkBihhtz/wouHuYRLCxtBY="; + rev = "refs/tags/v${version}"; + hash = "sha256-GXiLwwjZ/pN3HquzLLWq/2EfhmrJyCXq0sovIGRB3uQ="; }; postPatch = '' From b64a7822e9a6ffbf83c7a4a0b2b73f224f33086c Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sat, 26 Oct 2024 09:15:40 -0400 Subject: [PATCH 2/2] 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 4bf3adde50b30..ee5d925335246 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 ];