From 2ccc38c2d19a682e25d8ca15bb7de1995fae50f2 Mon Sep 17 00:00:00 2001 From: Harinn Date: Sun, 7 Jun 2026 10:50:34 +0700 Subject: [PATCH 1/2] python3Packages.circuitbreaker: migrate to pyproject --- pkgs/development/python-modules/circuitbreaker/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/circuitbreaker/default.nix b/pkgs/development/python-modules/circuitbreaker/default.nix index 71f4421efbda..8e82d58db1e5 100644 --- a/pkgs/development/python-modules/circuitbreaker/default.nix +++ b/pkgs/development/python-modules/circuitbreaker/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, pytestCheckHook, pytest-asyncio, pytest-mock, @@ -10,7 +11,7 @@ buildPythonPackage rec { pname = "circuitbreaker"; version = "2.1.3"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "fabfuel"; @@ -19,6 +20,8 @@ buildPythonPackage rec { hash = "sha256-7BpYGhha0PTYzsE9CsN4KxfJW/wm2i6V+uAeamBREBQ="; }; + build-system = [ setuptools ]; + nativeCheckInputs = [ pytestCheckHook pytest-asyncio From f48d8c95ab4afa9e94a92c8d48fdb1f841ae50b5 Mon Sep 17 00:00:00 2001 From: Harinn Date: Sun, 7 Jun 2026 10:52:18 +0700 Subject: [PATCH 2/2] python3Packages.circuitbreaker: modernize --- .../development/python-modules/circuitbreaker/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/circuitbreaker/default.nix b/pkgs/development/python-modules/circuitbreaker/default.nix index 8e82d58db1e5..f5b7985d8a0c 100644 --- a/pkgs/development/python-modules/circuitbreaker/default.nix +++ b/pkgs/development/python-modules/circuitbreaker/default.nix @@ -8,15 +8,17 @@ pytest-mock, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "circuitbreaker"; version = "2.1.3"; pyproject = true; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "fabfuel"; repo = "circuitbreaker"; - tag = version; + tag = finalAttrs.version; hash = "sha256-7BpYGhha0PTYzsE9CsN4KxfJW/wm2i6V+uAeamBREBQ="; }; @@ -36,4 +38,4 @@ buildPythonPackage rec { license = with lib.licenses; [ bsd3 ]; maintainers = with lib.maintainers; [ fab ]; }; -} +})