python3Packages.pre-commit-po-hooks: init at 1.7.3 (#295568)

This commit is contained in:
Arne Keller 2024-12-15 22:59:33 +01:00 committed by GitHub
commit 2fd1b9ec70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "pre-commit-po-hooks";
version = "1.7.3";
pyproject = true;
src = fetchFromGitHub {
owner = "mondeja";
repo = "pre-commit-po-hooks";
rev = "v${version}";
hash = "sha256-wTmcV8KkoQLuK4EWDt0pbp+EQJRatxnQYeBfikK+vlA=";
};
nativeCheckInputs = [ pytestCheckHook ];
build-system = [ setuptools ];
pythonImportsCheck = [ "pre_commit_po_hooks" ];
meta = {
description = "Hooks for pre-commit useful working with PO files";
homepage = "https://github.com/mondeja/pre-commit-po-hooks";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ yajo ];
};
}

View File

@ -10950,6 +10950,8 @@ self: super: with self; {
pre-commit-hooks = callPackage ../development/python-modules/pre-commit-hooks { };
pre-commit-po-hooks = callPackage ../development/python-modules/pre-commit-po-hooks { };
preggy = callPackage ../development/python-modules/preggy { };
preprocess-cancellation = callPackage ../development/python-modules/preprocess-cancellation { };