From 91ccbfd0849a668207f8df27af3dff5d8d38fd12 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 13 Jan 2026 08:04:55 +0100 Subject: [PATCH] python313Packages.cyclopts: migrate to finalAttrs --- pkgs/development/python-modules/cyclopts/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/cyclopts/default.nix b/pkgs/development/python-modules/cyclopts/default.nix index f6fe57ad78da..6c100197bb55 100644 --- a/pkgs/development/python-modules/cyclopts/default.nix +++ b/pkgs/development/python-modules/cyclopts/default.nix @@ -20,7 +20,7 @@ trio, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "cyclopts"; version = "4.4.4"; pyproject = true; @@ -28,7 +28,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "BrianPugh"; repo = "cyclopts"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-DX/mh1vgoSQoqzKRQg+NcCjfPPwy8WDJG7AfMYtPUSA="; }; @@ -61,7 +61,7 @@ buildPythonPackage rec { pytestCheckHook syrupy ] - ++ lib.concatAttrValues optional-dependencies; + ++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies); pythonImportsCheck = [ "cyclopts" ]; @@ -80,8 +80,8 @@ buildPythonPackage rec { meta = { description = "Module to create CLIs based on Python type hints"; homepage = "https://github.com/BrianPugh/cyclopts"; - changelog = "https://github.com/BrianPugh/cyclopts/releases/tag/${src.tag}"; + changelog = "https://github.com/BrianPugh/cyclopts/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; }; -} +})