34 lines
875 B
Nix
34 lines
875 B
Nix
{ stdenv, python3Packages }:
|
|
with python3Packages; buildPythonApplication rec {
|
|
pname = "pre-commit";
|
|
version = "1.16.1";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "pre_commit";
|
|
sha256 = "6ca409d1f22d444af427fb023a33ca8b69625d508a50e1b7eaabd59247c93043";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|