python3Packages.pre-commit-po-hooks: init at 1.7.3

@moduon MT-1075
This commit is contained in:
Jairo Llopis 2024-11-06 10:49:02 +00:00
parent eb4f8bd5bb
commit b9fe3c3e1f
No known key found for this signature in database
GPG Key ID: B24A1D10508180D8
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

@ -10033,6 +10033,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 { };
premailer = callPackage ../development/python-modules/premailer { };