python3Packages.pre-commit: 2.11.0 -> 2.13.0

This commit is contained in:
Fabian Affolter 2021-06-10 12:19:28 +02:00
parent d7d0a67765
commit 02ac0fd517

View File

@ -1,11 +1,13 @@
{ lib, fetchPypi, buildPythonPackage, pythonOlder
{ lib
, fetchPypi
, buildPythonPackage
, pythonOlder
, aspy-yaml
, cached-property
, cfgv
, identify
, importlib-metadata
, importlib-resources
, isPy27
, nodeenv
, python
, six
@ -15,13 +17,13 @@
buildPythonPackage rec {
pname = "pre-commit";
version = "2.11.0";
disabled = isPy27;
version = "2.13.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit version;
pname = "pre_commit";
sha256 = "15f1chxrbmfcajk1ngk3jvf6jjbigb5dg66wnn7phmlywaawpy06";
sha256 = "sha256-dklyxgaT3GaLqOhuspZU7DFEUBMQ9xmHQqdnvsOFo3g=";
};
patches = [
@ -53,6 +55,8 @@ buildPythonPackage rec {
--subst-var-by nodeenv ${nodeenv}
'';
pythonImportsCheck = [ "pre_commit" ];
meta = with lib; {
description = "A framework for managing and maintaining multi-language pre-commit hooks";
homepage = "https://pre-commit.com/";