mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
35 lines
863 B
Nix
35 lines
863 B
Nix
{ stdenv, python3Packages }:
|
|
with python3Packages; buildPythonApplication rec {
|
|
pname = "pre-commit";
|
|
version = "1.17.0";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "pre_commit";
|
|
sha256 = "1qswk30w2cq8xvj16mhszsi3npp0z08s8lki1w67nif23c2kkk6c";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|