Unverified Commit 9e1b9ab5 authored by asymmetric's avatar asymmetric Committed by GitHub
Browse files

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

tarsnapper: use nose to run tests
parents c429fa2f f6660806
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -37,8 +37,7 @@ python3Packages.buildPythonApplication rec {
  ];

  nativeCheckInputs = with python3Packages; [
    pytestCheckHook
    nose
    pynose
  ];

  # Remove standard module argparse from requirements
@@ -46,6 +45,12 @@ python3Packages.buildPythonApplication rec {

  makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ tarsnap ]}" ];

  checkPhase = ''
    runHook preCheck
    nosetests tests
    runHook postCheck
  '';

  pythonImportsCheck = [ "tarsnapper" ];

  meta = with lib; {