1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

svtplay-dl: migrate to pytest

This commit is contained in:
Emily 2024-07-28 21:58:24 +01:00 committed by natsukium
parent 4094f03ffd
commit 0fa536d5b2
No known key found for this signature in database
GPG key ID: 9EA45A31DB994C53

View file

@ -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 ]}")