Merge pull request #316465 from gmacon/tarsnapper-pytest-8

tarsnapper: use nose to run tests
This commit is contained in:
asymmetric 2024-06-03 14:06:40 +02:00 committed by GitHub
commit 9e1b9ab505
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,8 +37,7 @@ python3Packages.buildPythonApplication rec {
]; ];
nativeCheckInputs = with python3Packages; [ nativeCheckInputs = with python3Packages; [
pytestCheckHook pynose
nose
]; ];
# Remove standard module argparse from requirements # Remove standard module argparse from requirements
@ -46,6 +45,12 @@ python3Packages.buildPythonApplication rec {
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ tarsnap ]}" ]; makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ tarsnap ]}" ];
checkPhase = ''
runHook preCheck
nosetests tests
runHook postCheck
'';
pythonImportsCheck = [ "tarsnapper" ]; pythonImportsCheck = [ "tarsnapper" ];
meta = with lib; { meta = with lib; {