From 0fa536d5b27978048fd06e6547eea8f640c8d731 Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 28 Jul 2024 21:58:24 +0100 Subject: [PATCH] svtplay-dl: migrate to pytest --- pkgs/tools/misc/svtplay-dl/default.nix | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/pkgs/tools/misc/svtplay-dl/default.nix b/pkgs/tools/misc/svtplay-dl/default.nix index 2805d07b2d26..e0a0cfe9804c 100644 --- a/pkgs/tools/misc/svtplay-dl/default.nix +++ b/pkgs/tools/misc/svtplay-dl/default.nix @@ -5,7 +5,6 @@ python3Packages, perl, ffmpeg, - gitMinimal, }: let @@ -17,8 +16,7 @@ let pysocks cryptography pyyaml - nose3 - pytest + pytestCheckHook mock requests-mock ; @@ -55,27 +53,20 @@ buildPythonApplication { ]; nativeCheckInputs = [ - nose3 - pytest + pytestCheckHook mock requests-mock - gitMinimal + ]; + + pytestFlagsArray = [ + "--doctest-modules" + "lib" ]; postBuild = '' make svtplay-dl.1 ''; - doCheck = python3Packages.pythonOlder "3.12"; - - checkPhase = '' - runHook preCheck - - nosetests --all-modules --with-doctest - - runHook postCheck - ''; - postInstall = '' installManPage svtplay-dl.1 makeWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ ffmpeg ]}")