summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pre-commit-po-hooks/default.nix
blob: 1b682ad2c0a6e1fce4dc6cd53dc08a55f9cfa4e8 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 ];
  };
}