diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2021-07-12 09:57:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 09:57:38 +0200 |
commit | 17de7c8df1436a2e71d9efdf6f10ea0585fe5c8e (patch) | |
tree | fd18090355cde3d9ce77e0c94a6e18c570a7d5a2 /pkgs | |
parent | 790d7747918c99a4e7e6fa825520be24d5770310 (diff) | |
parent | 64f17e13328add755ac7149d65cbe2b774515cae (diff) | |
download | nixpkgs-17de7c8df1436a2e71d9efdf6f10ea0585fe5c8e.tar nixpkgs-17de7c8df1436a2e71d9efdf6f10ea0585fe5c8e.tar.gz nixpkgs-17de7c8df1436a2e71d9efdf6f10ea0585fe5c8e.tar.bz2 nixpkgs-17de7c8df1436a2e71d9efdf6f10ea0585fe5c8e.tar.lz nixpkgs-17de7c8df1436a2e71d9efdf6f10ea0585fe5c8e.tar.xz nixpkgs-17de7c8df1436a2e71d9efdf6f10ea0585fe5c8e.tar.zst nixpkgs-17de7c8df1436a2e71d9efdf6f10ea0585fe5c8e.zip |
Merge pull request #129855 from fabaff/bump-pre-commit-hooks
python3Packages.pre-commit-hooks: 3.4.0 -> 4.0.1
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/pre-commit-hooks/default.nix | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/pre-commit-hooks/default.nix b/pkgs/development/python-modules/pre-commit-hooks/default.nix index f664d9c6d25..212fdf6a721 100644 --- a/pkgs/development/python-modules/pre-commit-hooks/default.nix +++ b/pkgs/development/python-modules/pre-commit-hooks/default.nix @@ -1,9 +1,8 @@ -{ buildPythonPackage +{ lib +, buildPythonPackage , fetchFromGitHub -, fetchPypi , git -, isPy27 -, lib +, pythonOlder , pytestCheckHook , ruamel_yaml , toml @@ -11,19 +10,25 @@ buildPythonPackage rec { pname = "pre-commit-hooks"; - version = "3.4.0"; - disabled = isPy27; + version = "4.0.1"; + disabled = pythonOlder "3.6"; - # fetchPypi does not provide tests src = fetchFromGitHub { owner = "pre-commit"; repo = pname; rev = "v${version}"; - sha256 = "1aqkmprdc2lhds9c59pkkf2js65j63197flanaggk7cm8k0kz7zs"; + sha256 = "sha256-Rg2I79r0Pp3AUgT6mD+kEdm+5CEGgdmFn6G3xcU6fnk="; }; - propagatedBuildInputs = [ toml ruamel_yaml ]; - checkInputs = [ git pytestCheckHook ]; + propagatedBuildInputs = [ + ruamel_yaml + toml + ]; + + checkInputs = [ + git + pytestCheckHook + ]; # the tests require a functional git installation which requires a valid HOME # directory. @@ -34,6 +39,8 @@ buildPythonPackage rec { git config --global user.email "nix-builder@nixos.org" ''; + pythonImportsCheck = [ "pre_commit_hooks" ]; + meta = with lib; { description = "Some out-of-the-box hooks for pre-commit"; homepage = "https://github.com/pre-commit/pre-commit-hooks"; |