summary refs log tree commit diff
path: root/pkgs/applications/version-management/git-and-tools/pre-commit/default.nix
blob: d125672f8ca06f62ff38fe6140b4423cf4edcf6a (plain) (blame)
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
{ stdenv, python3Packages }:
with python3Packages; buildPythonApplication rec {
  pname = "pre_commit";
  version = "1.10.4";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1kn8h9k9ca330m5n7r4cvxp679y3sc95m1x23a3qhzgam09n7jwr";
  };

  propagatedBuildInputs = [
    aspy-yaml
    cached-property
    cfgv
    identify
    nodeenv
    six
    toml
    virtualenv
  ];

  # Tests fail due to a missing windll dependency
  doCheck = false;

  meta = with stdenv.lib; {
    description = "A framework for managing and maintaining multi-language pre-commit hooks";
    homepage = https://pre-commit.com/;
    license = licenses.mit;
    maintainers = with maintainers; [ borisbabic ];
  };
}