From e38263844e3603fc5798a4f229424086097ff15d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 30 Jan 2026 00:44:20 +0100 Subject: [PATCH] python314Packages.busypie: migrate to finalAttrs --- .../python-modules/busypie/default.nix | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/busypie/default.nix b/pkgs/development/python-modules/busypie/default.nix index 366ecdfa9b38..788d833dd7c8 100644 --- a/pkgs/development/python-modules/busypie/default.nix +++ b/pkgs/development/python-modules/busypie/default.nix @@ -6,10 +6,9 @@ pytest-timeout, pytestCheckHook, setuptools, - wheel, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "busypie"; version = "0.5.2"; pyproject = true; @@ -17,19 +16,16 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "rockem"; repo = "busypie"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-LaPgK36ieHKAbm9btx6t//dMdSGdzcaDJVou96D6J3U="; }; postPatch = '' substituteInPlace setup.py \ - --replace "pytest-runner" "" + --replace-fail "pytest-runner" "" ''; - nativeBuildInputs = [ - setuptools - wheel - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ pytest-asyncio @@ -42,8 +38,8 @@ buildPythonPackage rec { meta = { description = "Expressive busy wait for Python"; homepage = "https://github.com/rockem/busypie"; - changelog = "https://github.com/rockem/busypie/releases/tag/v${version}"; + changelog = "https://github.com/rockem/busypie/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; }; -} +})