From 09c9a521d898d43209a6c01c868dd80059f0d352 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 28 Jan 2026 08:33:52 +0000 Subject: [PATCH] tldr: use pytestCheckHook --- pkgs/by-name/tl/tldr/package.nix | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/tl/tldr/package.nix b/pkgs/by-name/tl/tldr/package.nix index 2d03455de2bf..5dce21705931 100644 --- a/pkgs/by-name/tl/tldr/package.nix +++ b/pkgs/by-name/tl/tldr/package.nix @@ -1,9 +1,9 @@ { - stdenv, lib, + stdenv, + python3Packages, fetchFromGitHub, installShellFiles, - python3Packages, }: python3Packages.buildPythonApplication (finalAttrs: { @@ -30,16 +30,13 @@ python3Packages.buildPythonApplication (finalAttrs: { nativeBuildInputs = [ installShellFiles ]; nativeCheckInputs = with python3Packages; [ - pytest + pytestCheckHook ]; - checkPhase = '' - runHook preCheck - pytest -k 'not test_error_message' - runHook postCheck - ''; - - doCheck = true; + disabledTests = [ + # Requires internet access + "test_error_message" + ]; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd tldr \