aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/flaky
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-10-23 12:12:59 +0000
committerKatharina Fey <kookie@spacekookie.de>2019-10-23 12:12:59 +0000
commit3547597c8c5db5e40e66119587777910e780da3d (patch)
treed5f54a723ee6bb380b918cea195762d271a98ba0 /nixpkgs/pkgs/development/python-modules/flaky
parent0f74f62ee25ac2d21bd67c29b8efc3ad079a72a8 (diff)
parentf35f0880f2cdbc8c1bc81492811251f120d7a9bc (diff)
Merge commit 'f35f0880f2cdbc8c1bc81492811251f120d7a9bc' into bump-nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/flaky')
-rw-r--r--nixpkgs/pkgs/development/python-modules/flaky/default.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/flaky/default.nix b/nixpkgs/pkgs/development/python-modules/flaky/default.nix
index 523e6ac53e6..c4e803245d5 100644
--- a/nixpkgs/pkgs/development/python-modules/flaky/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/flaky/default.nix
@@ -2,22 +2,29 @@
, buildPythonPackage
, fetchPypi
, mock
+, nose
, pytest
}:
buildPythonPackage rec {
pname = "flaky";
- version = "3.5.3";
+ version = "3.6.1";
src = fetchPypi {
inherit pname version;
- sha256 = "12bd5e41f372b2190e8d754b6e5829c2f11dbc764e10b30f57e59f829c9ca1da";
+ sha256 = "8cd5455bb00c677f787da424eaf8c4a58a922d0e97126d3085db5b279a98b698";
};
- buildInputs = [ mock pytest ];
+ checkInputs = [ mock nose pytest ];
- # waiting for feedback https://github.com/box/flaky/issues/97
- doCheck = false;
+ checkPhase = ''
+ # based on tox.ini
+ pytest -k 'example and not options' --doctest-modules test/test_pytest/
+ pytest -k 'example and not options' test/test_pytest/
+ pytest -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py
+ nosetests --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py
+ pytest --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py
+ '';
meta = with stdenv.lib; {
homepage = https://github.com/box/flaky;