From 6623b98a47ffe14aa8d134cf4d1ca10eb31cd1b7 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 31 Dec 2025 16:07:31 +0000 Subject: [PATCH] sqlfluff: relax click, cleanup --- pkgs/by-name/sq/sqlfluff/package.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/sq/sqlfluff/package.nix b/pkgs/by-name/sq/sqlfluff/package.nix index cf1d4b457919..f5a17eb0c58c 100644 --- a/pkgs/by-name/sq/sqlfluff/package.nix +++ b/pkgs/by-name/sq/sqlfluff/package.nix @@ -1,10 +1,11 @@ { lib, fetchFromGitHub, - python3, + python3Packages, + versionCheckHook, }: -python3.pkgs.buildPythonApplication rec { +python3Packages.buildPythonApplication rec { pname = "sqlfluff"; version = "3.5.0"; pyproject = true; @@ -16,10 +17,13 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-fO4a1DCDM5RCeaPUHtPPGgTtZPRHOl9nuxbipDJZy7A="; }; - build-system = with python3.pkgs; [ setuptools ]; + build-system = with python3Packages; [ setuptools ]; + pythonRelaxDeps = [ + "click" + ]; dependencies = - with python3.pkgs; + with python3Packages; [ appdirs cached-property @@ -44,10 +48,12 @@ python3.pkgs.buildPythonApplication rec { importlib_metadata ]; - nativeCheckInputs = with python3.pkgs; [ + nativeCheckInputs = with python3Packages; [ hypothesis pytestCheckHook + versionCheckHook ]; + versionCheckProgramArg = "--version"; disabledTestPaths = [ # Don't run the plugin related tests