From f960e38cf50c84af8653d15439423e9498f9bc10 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 2 Apr 2025 14:25:25 +0200 Subject: [PATCH] cpplint: 2.0.0 -> 2.0.1 Diff: https://github.com/cpplint/cpplint/compare/refs/tags/2.0.0...2.0.1 Changelog: https://github.com/cpplint/cpplint/releases/tag/2.0.1 --- pkgs/by-name/cp/cpplint/package.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/cp/cpplint/package.nix b/pkgs/by-name/cp/cpplint/package.nix index a46c032ec6df..de9cff77feab 100644 --- a/pkgs/by-name/cp/cpplint/package.nix +++ b/pkgs/by-name/cp/cpplint/package.nix @@ -7,20 +7,20 @@ python3Packages.buildPythonApplication rec { pname = "cpplint"; - version = "2.0.0"; + version = "2.0.1"; pyproject = true; src = fetchFromGitHub { owner = "cpplint"; repo = "cpplint"; tag = version; - hash = "sha256-076363ZwcriPb+Fn9S5jay8oL+LlBTNh+IqQRCAndRo="; + hash = "sha256-IM1XznnpdL1Piei9kKR1nCwfs7TVgLcTgMI4r+cQXLg="; }; + # We use pytest-cov-stub instead postPatch = '' - substituteInPlace setup.cfg \ - --replace-fail "pytest-cov" "" \ - --replace-fail "--cov-fail-under=90 --cov=cpplint" "" + substituteInPlace pyproject.toml \ + --replace-fail '"pytest-cov",' "" ''; build-system = with python3Packages; [ @@ -29,12 +29,13 @@ python3Packages.buildPythonApplication rec { nativeCheckInputs = with python3Packages; [ parameterized - pytestCheckHook + pytest-cov-stub pytest-timeout + pytestCheckHook testfixtures versionCheckHook ]; - versionCheckProgramArg = [ "--version" ]; + versionCheckProgramArg = "--version"; meta = { homepage = "https://github.com/cpplint/cpplint";