pre-commit: cleanup (#414735)

authored by Gaétan Lepage and committed by GitHub 48ad995f 1128c774

+16 -11
+16 -11
pkgs/by-name/pr/pre-commit/package.nix
··· 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 - libiconv, 6 cargo, 7 coursier, 8 dotnet-sdk, ··· 14 julia, 15 julia-bin, 16 pre-commit, 17 }: 18 19 with python3Packages; ··· 24 buildPythonApplication rec { 25 pname = "pre-commit"; 26 version = "4.2.0"; 27 - format = "setuptools"; 28 - 29 - disabled = pythonOlder "3.9"; 30 31 src = fetchFromGitHub { 32 owner = "pre-commit"; ··· 41 ./pygrep-pythonpath.patch 42 ]; 43 44 - propagatedBuildInputs = [ 45 cfgv 46 identify 47 nodeenv ··· 55 cargo 56 gitMinimal 57 go 58 - libiconv # For rust tests on Darwin 59 perl 60 pytest-env 61 pytest-forked ··· 64 re-assert 65 cabal-install 66 julia' 67 ] 68 ++ lib.optionals (!i686Linux) [ 69 # coursier can be moved back to the main nativeCheckInputs list once we’re able to bootstrap a ··· 79 # Node.js-related tests that are currently disabled on i686-linux. 80 nodejs 81 ]; 82 83 postPatch = '' 84 substituteInPlace pre_commit/resources/hook-tmpl \ ··· 110 export DOTNET_ROOT="${dotnet-sdk}/share/dotnet" 111 '' 112 + '' 113 - export HOME=$(mktemp -d) 114 - 115 git init -b master 116 117 python -m venv --system-site-packages venv ··· 213 inherit gitMinimal pre-commit; 214 }; 215 216 - meta = with lib; { 217 description = "Framework for managing and maintaining multi-language pre-commit hooks"; 218 homepage = "https://pre-commit.com/"; 219 - license = licenses.mit; 220 - maintainers = with maintainers; [ borisbabic ]; 221 mainProgram = "pre-commit"; 222 }; 223 }
··· 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 cargo, 6 coursier, 7 dotnet-sdk, ··· 13 julia, 14 julia-bin, 15 pre-commit, 16 + versionCheckHook, 17 + writableTmpDirAsHomeHook, 18 }: 19 20 with python3Packages; ··· 25 buildPythonApplication rec { 26 pname = "pre-commit"; 27 version = "4.2.0"; 28 + pyproject = true; 29 30 src = fetchFromGitHub { 31 owner = "pre-commit"; ··· 40 ./pygrep-pythonpath.patch 41 ]; 42 43 + build-system = [ 44 + setuptools 45 + ]; 46 + 47 + dependencies = [ 48 cfgv 49 identify 50 nodeenv ··· 58 cargo 59 gitMinimal 60 go 61 + # libiconv # For rust tests on Darwin 62 perl 63 pytest-env 64 pytest-forked ··· 67 re-assert 68 cabal-install 69 julia' 70 + versionCheckHook 71 + writableTmpDirAsHomeHook 72 ] 73 ++ lib.optionals (!i686Linux) [ 74 # coursier can be moved back to the main nativeCheckInputs list once we’re able to bootstrap a ··· 84 # Node.js-related tests that are currently disabled on i686-linux. 85 nodejs 86 ]; 87 + versionCheckProgramArg = "--version"; 88 89 postPatch = '' 90 substituteInPlace pre_commit/resources/hook-tmpl \ ··· 116 export DOTNET_ROOT="${dotnet-sdk}/share/dotnet" 117 '' 118 + '' 119 git init -b master 120 121 python -m venv --system-site-packages venv ··· 217 inherit gitMinimal pre-commit; 218 }; 219 220 + meta = { 221 description = "Framework for managing and maintaining multi-language pre-commit hooks"; 222 homepage = "https://pre-commit.com/"; 223 + changelog = "https://github.com/pre-commit/pre-commit/blob/v${version}/CHANGELOG.md"; 224 + license = lib.licenses.mit; 225 + maintainers = with lib.maintainers; [ borisbabic ]; 226 mainProgram = "pre-commit"; 227 }; 228 }