6 python3.pkgs.buildPythonApplication rec {
10 src = fetchFromGitHub {
13 rev = "refs/tags/${version}";
14 hash = "sha256-5QWjlidDtf0OWQ9sdS08bCX5XV41igWmPr20gwbumQU=";
17 propagatedBuildInputs = with python3.pkgs; [
34 ] ++ lib.optionals (pythonOlder "3.7") [
36 ] ++ lib.optionals (pythonOlder "3.8") [
37 backports.cached-property
41 checkInputs = with python3.pkgs; [
47 # Don't run the plugin related tests
48 "test/core/plugin_test.py"
49 "plugins/sqlfluff-templater-dbt"
50 "plugins/sqlfluff-plugin-example/test/rules/rule_test_cases_test.py"
54 # dbt is not available yet
55 "test__linter__skip_dbt_model_disabled"
56 "test_rules__test_helper_has_variable_introspection"
57 "test__rules__std_file_dbt"
60 pythonImportsCheck = [
65 description = "SQL linter and auto-formatter";
66 homepage = "https://www.sqlfluff.com/";
67 license = with licenses; [ mit ];
68 maintainers = with maintainers; [ fab ];