nixpkgs/pkgs/applications/version-management/git-and-tools/pre-commit/default.nix
2019-02-04 21:54:36 +01:00

35 lines
863 B
Nix

{ stdenv, python3Packages }:
with python3Packages; buildPythonApplication rec {
pname = "pre-commit";
version = "1.14.2";
src = fetchPypi {
inherit version;
pname = "pre_commit";
sha256 = "010fwih91gbc20hm2hmkyicm2a2xwrjjg4r4wv24x3n7zn4abdrc";
};
propagatedBuildInputs = [
aspy-yaml
cached-property
cfgv
identify
nodeenv
six
toml
virtualenv
importlib-metadata
] ++ stdenv.lib.optional (pythonOlder "3.7") importlib-resources
++ stdenv.lib.optional (pythonOlder "3.2") futures;
# 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 ];
};
}