python3Packages.sqlfmt: 0.27.0 -> 0.28.1

Diff: https://github.com/tconbeer/sqlfmt/compare/v0.27.0...v0.28.1

Changelog: https://github.com/tconbeer/sqlfmt/blob/v0.28.1/CHANGELOG.md
This commit is contained in:
Gaetan Lepage
2025-10-22 21:32:52 +00:00
parent 01b6809f7f
commit ddb5a1988b
@@ -1,23 +1,33 @@
{
lib,
black,
buildPythonPackage,
click,
fetchFromGitHub,
gitpython,
pythonOlder,
# build-system
hatchling,
# dependencies
click,
jinja2,
platformdirs,
poetry-core,
tqdm,
# optional-dependencies
black,
gitpython,
# tests
addBinToPathHook,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
tqdm,
versionCheckHook,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "sqlfmt";
version = "0.27.0";
version = "0.28.1";
pyproject = true;
disabled = pythonOlder "3.12";
@@ -26,11 +36,14 @@ buildPythonPackage rec {
owner = "tconbeer";
repo = "sqlfmt";
tag = "v${version}";
hash = "sha256-Yel9SB7KrDqtuZxNx4omz6u4AID8Fk5kFYKBEZD1fuU=";
hash = "sha256-H896Ey4iJFuvcLLvLilN/6nN4gxpvv3VJKIjivEDwMU=";
};
build-system = [ poetry-core ];
build-system = [ hatchling ];
pythonRelaxDeps = [
"click"
];
dependencies = [
click
jinja2
@@ -43,18 +56,23 @@ buildPythonPackage rec {
sqlfmt_primer = [ gitpython ];
};
pythonImportsCheck = [ "sqlfmt" ];
nativeCheckInputs = [
addBinToPathHook
pytest-asyncio
pytestCheckHook
versionCheckHook
writableTmpDirAsHomeHook
]
++ lib.flatten (builtins.attrValues optional-dependencies);
versionCheckProgramArg = "--version";
preCheck = ''
export PATH="$PATH:$out/bin";
'';
pythonImportsCheck = [ "sqlfmt" ];
disabledTestPaths = [
# TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr'
"tests/functional_tests/test_end_to_end.py"
"tests/unit_tests/test_cli.py"
];
meta = {
description = "Sqlfmt formats your dbt SQL files so you don't have to";