at 23.05-pre 932 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, mock 5, nose 6, pytest 7}: 8 9buildPythonPackage rec { 10 pname = "flaky"; 11 version = "3.7.0"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "3ad100780721a1911f57a165809b7ea265a7863305acb66708220820caf8aa0d"; 16 }; 17 18 checkInputs = [ mock nose pytest ]; 19 20 checkPhase = '' 21 # based on tox.ini 22 pytest -k 'example and not options' --doctest-modules test/test_pytest/ 23 pytest -k 'example and not options' test/test_pytest/ 24 pytest -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py 25 nosetests --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py 26 pytest --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py 27 ''; 28 29 meta = with lib; { 30 homepage = "https://github.com/box/flaky"; 31 description = "Plugin for nose or py.test that automatically reruns flaky tests"; 32 license = licenses.asl20; 33 }; 34 35}