python.pkgs.httpretty: disable flaky test suite

There are some tests that fail occasionally because the current date
(with second precision) occurs in the output. This is fixed upstream.
I've made this conditional since python updates are often done in an
automated fashion and tests should be re-enabled after the next update.
This avoids the need for human intervention (except for a clean up at
some point in the future).

authored by

Timo Kaufmann and committed by
Jon
3757e024 4da30775

+4
+4
pkgs/development/python-modules/httpretty/default.nix
··· 18 pname = "httpretty"; 19 version = "0.9.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 sha256 = "66216f26b9d2c52e81808f3e674a6fb65d4bf719721394a1a9be926177e55fbe";
··· 18 pname = "httpretty"; 19 version = "0.9.7"; 20 21 + # drop this for version > 0.9.7 22 + # Flaky tests: https://github.com/gabrielfalcao/HTTPretty/pull/394 23 + doCheck = stdenv.lib.versionAtLeast version "0.9.8"; 24 + 25 src = fetchPypi { 26 inherit pname version; 27 sha256 = "66216f26b9d2c52e81808f3e674a6fb65d4bf719721394a1a9be926177e55fbe";