mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 12:34:15 +00:00
Merge pull request #316465 from gmacon/tarsnapper-pytest-8
tarsnapper: use nose to run tests
This commit is contained in:
commit
9e1b9ab505
@ -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; {
|
||||||
|
Loading…
Reference in New Issue
Block a user