sqruff: 0.25.28 -> 0.29.3

Diff: https://github.com/quarylabs/sqruff/compare/v0.25.28...v0.29.3

Changelog: https://github.com/quarylabs/sqruff/releases/tag/0.29.3

+4 -75
-15
pkgs/by-name/sq/sqruff/disable-templaters-test.diff
··· 1 - diff --git a/crates/lib/tests/templaters.rs b/crates/lib/tests/templaters.rs 2 - index f92604e1..84885f9f 100644 3 - --- a/crates/lib/tests/templaters.rs 4 - +++ b/crates/lib/tests/templaters.rs 5 - @@ -32,6 +32,10 @@ impl Args { 6 - } 7 - } 8 - 9 - +#[cfg(not(feature = "python"))] 10 - +fn main() {} 11 - + 12 - +#[cfg(feature = "python")] 13 - // FIXME: Simplify FluffConfig handling. It's quite chaotic right now. 14 - fn main() { 15 - let mut args = Args::default();
-15
pkgs/by-name/sq/sqruff/disable-ui_with_dbt-test.diff
··· 1 - diff --git a/crates/cli/tests/ui_with_dbt.rs b/crates/cli/tests/ui_with_dbt.rs 2 - index d71a26c1..4d4ffe4f 100644 3 - --- a/crates/cli/tests/ui_with_dbt.rs 4 - +++ b/crates/cli/tests/ui_with_dbt.rs 5 - @@ -3,6 +3,10 @@ use std::path::PathBuf; 6 - use assert_cmd::Command; 7 - use expect_test::expect_file; 8 - 9 - +#[cfg(not(feature = "python"))] 10 - +fn main() {} 11 - + 12 - +#[cfg(feature = "python")] 13 - fn main() { 14 - let sample_dbt_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR")) 15 - .parent()
-15
pkgs/by-name/sq/sqruff/disable-ui_with_jinja-test.diff
··· 1 - diff --git a/crates/cli/tests/ui_with_jinja.rs b/crates/cli/tests/ui_with_jinja.rs 2 - index 7c39f8a1..e4c96d41 100644 3 - --- a/crates/cli/tests/ui_with_jinja.rs 4 - +++ b/crates/cli/tests/ui_with_jinja.rs 5 - @@ -4,6 +4,10 @@ use std::path::PathBuf; 6 - use assert_cmd::Command; 7 - use expect_test::expect_file; 8 - 9 - +#[cfg(not(feature = "python"))] 10 - +fn main() {} 11 - + 12 - +#[cfg(feature = "python")] 13 - fn main() { 14 - let mut test_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR")); 15 - test_dir.push("tests/jinja");
-15
pkgs/by-name/sq/sqruff/disable-ui_with_python-test.diff
··· 1 - diff --git a/crates/cli/tests/ui_with_python.rs b/crates/cli/tests/ui_with_python.rs 2 - index 826f399c..0fa5ae33 100644 3 - --- a/crates/cli/tests/ui_with_python.rs 4 - +++ b/crates/cli/tests/ui_with_python.rs 5 - @@ -4,6 +4,10 @@ use std::path::PathBuf; 6 - use assert_cmd::Command; 7 - use expect_test::expect_file; 8 - 9 - +#[cfg(not(feature = "python"))] 10 - +fn main() {} 11 - + 12 - +#[cfg(feature = "python")] 13 - fn main() { 14 - let mut test_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR")); 15 - test_dir.push("tests/python");
+4 -15
pkgs/by-name/sq/sqruff/package.nix
··· 3 3 rustPlatform, 4 4 fetchFromGitHub, 5 5 stdenv, 6 - rust-jemalloc-sys, 7 6 nix-update-script, 8 7 versionCheckHook, 9 8 }: 10 9 rustPlatform.buildRustPackage rec { 11 10 pname = "sqruff"; 12 - version = "0.25.28"; 11 + version = "0.29.3"; 13 12 14 13 src = fetchFromGitHub { 15 14 owner = "quarylabs"; 16 15 repo = "sqruff"; 17 16 tag = "v${version}"; 18 - hash = "sha256-Xea6jXQos5gyF1FeGF7B5YaQszqfsKhGw1k8j0m7J6c="; 17 + hash = "sha256-bJmkHOACjdSXHE56okrIFERs1wK00XeyipdIFbRjIFI="; 19 18 }; 20 19 21 - cargoHash = "sha256-agB//UDTsEje9pgig07dUy8/Fr+zx7/MC3AdLjqoKJY="; 22 - 23 - buildInputs = [ 24 - rust-jemalloc-sys 25 - ]; 20 + cargoHash = "sha256-TxADMtapo6Pc4Z0MUkzkzUIrLnGa1DdZFzfTq4buF4g="; 26 21 27 22 # Disable the `python` feature which doesn't work on Nix yet 28 23 buildNoDefaultFeatures = true; 29 - # The jinja and dbt template engines require the `python` feature which we disabled, so we disable these tests 30 - patches = [ 31 - ./disable-templaters-test.diff 32 - ./disable-ui_with_dbt-test.diff 33 - ./disable-ui_with_jinja-test.diff 34 - ./disable-ui_with_python-test.diff 35 - ]; 24 + buildAndTestSubdir = "crates/cli"; 36 25 37 26 # Patch the tests to find the sqruff binary 38 27 postPatch = ''