From 72869bb06d80a567ed4ee9d7a90d7099604b4b89 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Mon, 1 Jun 2026 01:13:27 +0200 Subject: [PATCH 1/3] python3Packages.aiopyarr: migration to pyproject --- pkgs/development/python-modules/aiopyarr/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiopyarr/default.nix b/pkgs/development/python-modules/aiopyarr/default.nix index 3ef60fe7185d..690262dd93aa 100644 --- a/pkgs/development/python-modules/aiopyarr/default.nix +++ b/pkgs/development/python-modules/aiopyarr/default.nix @@ -8,12 +8,13 @@ orjson, pytest-asyncio, pytestCheckHook, + setuptools, }: buildPythonPackage rec { pname = "aiopyarr"; version = "23.4.0"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "tkdrob"; @@ -22,12 +23,14 @@ buildPythonPackage rec { hash = "sha256-CzNB6ymvDTktiOGdcdCvWLVQ3mKmbdMpc/vezSXCpG4="; }; + build-system = [ setuptools ]; + postPatch = '' substituteInPlace setup.py \ --replace 'version="master"' 'version="${version}"' ''; - propagatedBuildInputs = [ + dependencies = [ aiohttp ciso8601 orjson From 3d1832043e646376fdd7c163413346c9897375fd Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Mon, 1 Jun 2026 01:13:45 +0200 Subject: [PATCH 2/3] python3Packages.aiopyarr: replace --replace with --replace-fail --- pkgs/development/python-modules/aiopyarr/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/aiopyarr/default.nix b/pkgs/development/python-modules/aiopyarr/default.nix index 690262dd93aa..50e7ec06d51c 100644 --- a/pkgs/development/python-modules/aiopyarr/default.nix +++ b/pkgs/development/python-modules/aiopyarr/default.nix @@ -27,7 +27,7 @@ buildPythonPackage rec { postPatch = '' substituteInPlace setup.py \ - --replace 'version="master"' 'version="${version}"' + --replace-fail 'version="master"' 'version="${version}"' ''; dependencies = [ From 46ccf790cd9044bd277ff9f989a05394eb442499 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Mon, 1 Jun 2026 01:14:28 +0200 Subject: [PATCH 3/3] python3Packages.aiopyarr: use finalAttrs --- pkgs/development/python-modules/aiopyarr/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/aiopyarr/default.nix b/pkgs/development/python-modules/aiopyarr/default.nix index 50e7ec06d51c..3d52f9d5d302 100644 --- a/pkgs/development/python-modules/aiopyarr/default.nix +++ b/pkgs/development/python-modules/aiopyarr/default.nix @@ -11,7 +11,7 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "aiopyarr"; version = "23.4.0"; pyproject = true; @@ -19,7 +19,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "tkdrob"; repo = "aiopyarr"; - tag = version; + tag = finalAttrs.version; hash = "sha256-CzNB6ymvDTktiOGdcdCvWLVQ3mKmbdMpc/vezSXCpG4="; }; @@ -27,7 +27,7 @@ buildPythonPackage rec { postPatch = '' substituteInPlace setup.py \ - --replace-fail 'version="master"' 'version="${version}"' + --replace-fail 'version="master"' 'version="${finalAttrs.version}"' ''; dependencies = [ @@ -47,8 +47,8 @@ buildPythonPackage rec { meta = { description = "Python API client for Lidarr/Radarr/Readarr/Sonarr"; homepage = "https://github.com/tkdrob/aiopyarr"; - changelog = "https://github.com/tkdrob/aiopyarr/releases/tag/${version}"; + changelog = "https://github.com/tkdrob/aiopyarr/releases/tag/${finalAttrs.version}"; license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ fab ]; }; -} +})