forked from mirrors/nixpkgs
7b60fb4bb7
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
35 lines
863 B
Nix
35 lines
863 B
Nix
{ stdenv, python3Packages }:
|
|
with python3Packages; buildPythonApplication rec {
|
|
pname = "pre-commit";
|
|
version = "1.15.1";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "pre_commit";
|
|
sha256 = "1c4a6g3x44xkr75196m2qhb7fbm0lv40yv312g4hkl00mq713abm";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|