From 5b30a71a13a63797be264a60db747da3b262a8a0 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sat, 25 Nov 2023 18:01:11 +0900 Subject: [PATCH 1/2] python311Packages.radios: 0.1.1 -> 0.3.0 Diff: https://github.com/frenck/python-radios/compare/v0.1.1...v0.3.0 --- .../python-modules/radios/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/radios/default.nix b/pkgs/development/python-modules/radios/default.nix index 047946b25175..608a21ca2be7 100644 --- a/pkgs/development/python-modules/radios/default.nix +++ b/pkgs/development/python-modules/radios/default.nix @@ -8,26 +8,28 @@ , awesomeversion , backoff , cachetools +, mashumaro +, orjson , pycountry -, pydantic , yarl +, aresponses , pytest-asyncio , pytestCheckHook }: buildPythonPackage rec { pname = "radios"; - version = "0.1.1"; + version = "0.3.0"; + pyproject = true; - disabled = pythonOlder "3.9"; + disabled = pythonOlder "3.11"; - format = "pyproject"; src = fetchFromGitHub { owner = "frenck"; repo = "python-radios"; rev = "v${version}"; - hash = "sha256-NCBch9MCWVD6ez0sIUph8rwOOzEMZtwC4atXJe53xZM="; + hash = "sha256-bzo+SA8kqc2GcxSV0TiIJyPVG+JshdsMoXSUhZYSphU="; }; postPatch = '' @@ -46,12 +48,14 @@ buildPythonPackage rec { awesomeversion backoff cachetools + mashumaro + orjson pycountry - pydantic yarl ]; nativeCheckInputs = [ + aresponses pytest-asyncio pytestCheckHook ]; From 6b6e39e08d450645af644320b11fa15fcea3343e Mon Sep 17 00:00:00 2001 From: natsukium Date: Sat, 25 Nov 2023 18:26:51 +0900 Subject: [PATCH 2/2] python311Packages.radios: fix darwin sandbox build --- pkgs/development/python-modules/radios/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/radios/default.nix b/pkgs/development/python-modules/radios/default.nix index 608a21ca2be7..73630f59fd3a 100644 --- a/pkgs/development/python-modules/radios/default.nix +++ b/pkgs/development/python-modules/radios/default.nix @@ -62,6 +62,8 @@ buildPythonPackage rec { pythonImportsCheck = [ "radios" ]; + __darwinAllowLocalNetworking = true; + meta = with lib; { description = "Asynchronous Python client for the Radio Browser API"; homepage = "https://github.com/frenck/python-radios";