From 027a66e5fdfbac6a6d98e3e5e2bd230f90a04d1e Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Wed, 27 May 2026 23:23:27 +0200 Subject: [PATCH 1/2] python3Packages.aioemonitor: migrate to pyproject --- pkgs/development/python-modules/aioemonitor/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aioemonitor/default.nix b/pkgs/development/python-modules/aioemonitor/default.nix index afece48e23da..068ee031381c 100644 --- a/pkgs/development/python-modules/aioemonitor/default.nix +++ b/pkgs/development/python-modules/aioemonitor/default.nix @@ -7,13 +7,14 @@ pytest-asyncio, pytest-raises, pytestCheckHook, + setuptools, xmltodict, }: buildPythonPackage rec { pname = "aioemonitor"; version = "1.0.5"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "bdraco"; @@ -22,7 +23,9 @@ buildPythonPackage rec { sha256 = "0h8zqqy8v8r1fl9bp3m8icr2sy44p0mbfl1hbb0zni17r9r50dhn"; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ aiohttp xmltodict ]; From e71f61f001e944b7d72cda59016f72bd2b05674e Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Wed, 27 May 2026 23:23:53 +0200 Subject: [PATCH 2/2] python3Packages.aioemonitor: use finalAttrs --- pkgs/development/python-modules/aioemonitor/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/aioemonitor/default.nix b/pkgs/development/python-modules/aioemonitor/default.nix index 068ee031381c..4ff606078d4b 100644 --- a/pkgs/development/python-modules/aioemonitor/default.nix +++ b/pkgs/development/python-modules/aioemonitor/default.nix @@ -11,7 +11,7 @@ xmltodict, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "aioemonitor"; version = "1.0.5"; pyproject = true; @@ -19,7 +19,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "bdraco"; repo = "aioemonitor"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "0h8zqqy8v8r1fl9bp3m8icr2sy44p0mbfl1hbb0zni17r9r50dhn"; }; @@ -50,4 +50,4 @@ buildPythonPackage rec { license = with lib.licenses; [ asl20 ]; maintainers = with lib.maintainers; [ fab ]; }; -} +})