jj-pre-push: 0.3.3 -> 0.3.4 (#497633)

This commit is contained in:
Fabian Affolter 2026-03-07 17:18:11 +00:00 committed by GitHub
commit 507851ba81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,26 +9,26 @@
pre-commit,
}:
python3Packages.buildPythonApplication rec {
python3Packages.buildPythonApplication (finalAttrs: {
pname = "jj-pre-push";
version = "0.3.3";
version = "0.3.4";
pyproject = true;
src = fetchFromGitHub {
owner = "acarapetis";
repo = "jj-pre-push";
tag = "v${version}";
hash = "sha256-dZrZjzygT6Q7jIPkasYgJ2uN3eyPQXsg0opksookLYI=";
tag = "v${finalAttrs.version}";
hash = "sha256-sj1JM2gcwTRMeEXSozI73LCwxSf69t4u/SmovV7Cyeg=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "typer-slim" "typer"
substituteInPlace pyproject.toml \
--replace-fail "uv_build>=0.8.2,<0.11.0" "uv_build"
'';
build-system = [
python3Packages.uv-build
];
build-system = with python3Packages; [ uv-build ];
dependencies =
with python3Packages;
@ -38,6 +38,7 @@ python3Packages.buildPythonApplication rec {
++ lib.optionals withPrecommit [ pre-commit ];
nativeBuildInputs = [ installShellFiles ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd jj-pre-push \
--bash <($out/bin/jj-pre-push --show-completion bash) \
@ -45,15 +46,14 @@ python3Packages.buildPythonApplication rec {
--zsh <($out/bin/jj-pre-push --show-completion zsh)
'';
pythonImportsCheck = [
"jj_pre_push"
];
pythonImportsCheck = [ "jj_pre_push" ];
meta = {
description = "Run pre-commit.com before `jj git push`";
homepage = "https://github.com/acarapetis/jj-pre-push";
changelog = "https://github.com/acarapetis/jj-pre-push/releases/tag/v${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ xanderio ];
mainProgram = "jj-pre-push";
};
}
})