git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.flaky: 3.5.3 -> 3.6.1 (#68411)
commitb44fca170255bf51afa1e5b7200154d7524fe8fb authorPavol Rusnak <pavol@rusnak.io> dateMon 16 Sep 2019, 06:29 (7 years ago) parent2981900
1 file changed+12−5
pkgs/development/python-modules/flaky/default.nix+12−5
pkgs/development/python-modules/flaky/default.nix+12−5
@@ -2,22 +2,29 @@
22, buildPythonPackage
33, fetchPypi
44, mock
5+, nose
56, pytest
67}:
78
89buildPythonPackage rec {
910 pname = "flaky";
10− version = "3.5.3";
11+ version = "3.6.1";
1112
1213 src = fetchPypi {
1314 inherit pname version;
14− sha256 = "12bd5e41f372b2190e8d754b6e5829c2f11dbc764e10b30f57e59f829c9ca1da";
15+ sha256 = "8cd5455bb00c677f787da424eaf8c4a58a922d0e97126d3085db5b279a98b698";
1516 };
1617
17− buildInputs = [ mock pytest ];
18+ checkInputs = [ mock nose pytest ];
1819
19− # waiting for feedback https://github.com/box/flaky/issues/97
20− doCheck = false;
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+ '';
2128
2229 meta = with stdenv.lib; {
2330 homepage = https://github.com/box/flaky;