nixpkgs/pkgs/development/python-modules/pre-commit/default.nix
R. RyanTM d1e50a5f78 gitAndTools.pre-commit: 1.18.2 -> 1.18.3
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/pre-commit/versions
2019-09-28 08:49:17 -07:00

47 lines
956 B
Nix

{ lib, fetchPypi, buildPythonApplication, pythonOlder
, aspy-yaml
, cached-property
, cfgv
, futures
, identify
, importlib-metadata
, importlib-resources
, nodeenv
, six
, toml
, virtualenv
}:
buildPythonApplication rec {
pname = "pre-commit";
version = "1.18.3";
src = fetchPypi {
inherit version;
pname = "pre_commit";
sha256 = "0gqzx5n5kps7z45rgydciz0sq1m09b4g49vclhvybi57pn3hag0x";
};
propagatedBuildInputs = [
aspy-yaml
cached-property
cfgv
identify
nodeenv
six
toml
virtualenv
importlib-metadata
] ++ lib.optional (pythonOlder "3.7") importlib-resources
++ lib.optional (pythonOlder "3.2") futures;
# slow and impure
doCheck = false;
meta = with 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 ];
};
}