From 8a512f461b95b04893c038fa823d4ef84a0743ed Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sun, 29 Mar 2026 21:39:39 +0200 Subject: [PATCH] python3Packages.selectolax: switch to `finalAttrs` pattern --- pkgs/development/python-modules/selectolax/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/selectolax/default.nix b/pkgs/development/python-modules/selectolax/default.nix index 97ae83e2d387..53889ff5be8a 100644 --- a/pkgs/development/python-modules/selectolax/default.nix +++ b/pkgs/development/python-modules/selectolax/default.nix @@ -10,7 +10,7 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "selectolax"; version = "0.4.7"; pyproject = true; @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "rushter"; repo = "selectolax"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-W2Icz600qu7XWLQuaevWFOji270wAmG3VmCxaAODLGw="; }; @@ -43,8 +43,8 @@ buildPythonPackage rec { pytestCheckHook ]; + # shadows name and breaks imports in tests preCheck = '' - # shadows name and breaks imports in tests rm -rf selectolax ''; @@ -55,8 +55,8 @@ buildPythonPackage rec { meta = { description = "Python binding to Modest and Lexbor engines. Fast HTML5 parser with CSS selectors for Python"; homepage = "https://github.com/rushter/selectolax"; - changelog = "https://github.com/rushter/selectolax/blob/${src.tag}/CHANGES.md"; + changelog = "https://github.com/rushter/selectolax/blob/${finalAttrs.src.tag}/CHANGES.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ marcel ]; }; -} +})