sqlfluff: modernize

This commit is contained in:
Fabian Affolter
2026-01-28 08:30:45 +01:00
committed by GitHub
parent 2ac93ec063
commit 06e34737eb
+8 -8
View File
@@ -5,7 +5,7 @@
versionCheckHook,
}:
python3Packages.buildPythonApplication rec {
python3Packages.buildPythonApplication (finalAttrs: {
pname = "sqlfluff";
version = "4.0.0";
pyproject = true;
@@ -13,15 +13,14 @@ python3Packages.buildPythonApplication rec {
src = fetchFromGitHub {
owner = "sqlfluff";
repo = "sqlfluff";
tag = version;
tag = finalAttrs.version;
hash = "sha256-hXiy3PGoBe6O9FaACN31Tss3xMBfiw4YuVLxbGi+/tA=";
};
pythonRelaxDeps = [ "click" ];
build-system = with python3Packages; [ setuptools ];
pythonRelaxDeps = [
"click"
];
dependencies = with python3Packages; [
appdirs
cached-property
@@ -47,6 +46,7 @@ python3Packages.buildPythonApplication rec {
pytestCheckHook
versionCheckHook
];
versionCheckProgramArg = "--version";
disabledTestPaths = [
@@ -71,9 +71,9 @@ python3Packages.buildPythonApplication rec {
meta = {
description = "SQL linter and auto-formatter";
homepage = "https://www.sqlfluff.com/";
changelog = "https://github.com/sqlfluff/sqlfluff/blob/${src.tag}/CHANGELOG.md";
license = with lib.licenses; [ mit ];
changelog = "https://github.com/sqlfluff/sqlfluff/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "sqlfluff";
};
}
})