b9fe3c3e1f
@moduon MT-1075
33 lines
732 B
Nix
33 lines
732 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|