summary refs log tree commit diff
path: root/pkgs/applications/version-management/git-and-tools/pre-commit/default.nix
blob: 331b020d8ca7760d2ec1677874f48c45fc4cbc06 (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.11.1";

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

  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 ];
  };
}