jj-pre-push: init at 0.2.1 (#445471)
This commit is contained in:
38
pkgs/by-name/jj/jj-pre-push/package.nix
Normal file
38
pkgs/by-name/jj/jj-pre-push/package.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
lib,
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "jj-pre-push";
|
||||
version = "0.2.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "acarapetis";
|
||||
repo = "jj-pre-push";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-9HyVWxYmemF/K3ttQ0L1lZF/XFkSeqwli/Mm+FFI8lQ=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
python3Packages.uv-build
|
||||
];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
typer-slim
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"jj_pre_push"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Run pre-commit.com before `jj git push`";
|
||||
homepage = "https://github.com/acarapetis/jj-pre-push";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ xanderio ];
|
||||
mainProgram = "jj-pre-push";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user