2019-08-09 20:24:08 +01:00
|
|
|
{ lib, fetchPypi, buildPythonApplication, pythonOlder
|
|
|
|
, aspy-yaml
|
|
|
|
, cached-property
|
|
|
|
, cfgv
|
|
|
|
, futures
|
|
|
|
, identify
|
|
|
|
, importlib-metadata
|
|
|
|
, importlib-resources
|
|
|
|
, nodeenv
|
|
|
|
, six
|
|
|
|
, toml
|
|
|
|
, virtualenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2019-01-24 19:50:13 +00:00
|
|
|
pname = "pre-commit";
|
2019-08-12 08:34:23 +01:00
|
|
|
version = "1.18.1";
|
2018-07-31 00:19:24 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2019-01-24 19:50:13 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "pre_commit";
|
2019-08-12 08:34:23 +01:00
|
|
|
sha256 = "0d9ja186g41kw3gmhbi6xjvaslz6z4xis4qn1q6jabkka6jz4qhp";
|
2018-07-31 00:19:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aspy-yaml
|
|
|
|
cached-property
|
|
|
|
cfgv
|
|
|
|
identify
|
|
|
|
nodeenv
|
|
|
|
six
|
|
|
|
toml
|
|
|
|
virtualenv
|
2019-01-24 19:50:13 +00:00
|
|
|
importlib-metadata
|
2019-08-09 20:24:08 +01:00
|
|
|
] ++ lib.optional (pythonOlder "3.7") importlib-resources
|
|
|
|
++ lib.optional (pythonOlder "3.2") futures;
|
2018-07-31 00:19:24 +01:00
|
|
|
|
2019-08-09 20:24:08 +01:00
|
|
|
# slow and impure
|
2018-07-31 00:19:24 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-08-09 20:24:08 +01:00
|
|
|
meta = with lib; {
|
2018-07-31 00:19:24 +01:00
|
|
|
description = "A framework for managing and maintaining multi-language pre-commit hooks";
|
|
|
|
homepage = https://pre-commit.com/;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ borisbabic ];
|
|
|
|
};
|
|
|
|
}
|