From bf9ed600bb5abd63642fd1878464bbafc672f1fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 17 Mar 2026 07:27:58 -0700 Subject: [PATCH] python3Packages.pybind11: use finalAttrs --- pkgs/development/python-modules/pybind11/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pybind11/default.nix b/pkgs/development/python-modules/pybind11/default.nix index a4aec5b80ec7..b4ad44050799 100644 --- a/pkgs/development/python-modules/pybind11/default.nix +++ b/pkgs/development/python-modules/pybind11/default.nix @@ -6,7 +6,6 @@ cmake, ninja, scikit-build-core, - pybind11, boost, eigen, python, @@ -29,7 +28,7 @@ let }; } ./setup-hook.sh; in -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pybind11"; version = "3.0.2"; pyproject = true; @@ -37,14 +36,14 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "pybind"; repo = "pybind11"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-T09+cS8J3wG1NisgwBUh6g5KreOp9d5U1qOKS6x1pKk="; }; build-system = [ cmake ninja - pybind11.passthru.scikit-build-core-no-tests + finalAttrs.passthru.scikit-build-core-no-tests ]; buildInputs = lib.optionals buildTests [ @@ -105,7 +104,7 @@ buildPythonPackage rec { meta = { homepage = "https://github.com/pybind/pybind11"; - changelog = "https://github.com/pybind/pybind11/blob/${src.tag}/docs/changelog.md"; + changelog = "https://github.com/pybind/pybind11/blob/${finalAttrs.src.tag}/docs/changelog.md"; description = "Seamless operability between C++11 and Python"; mainProgram = "pybind11-config"; longDescription = '' @@ -119,4 +118,4 @@ buildPythonPackage rec { dotlambda ]; }; -} +})