about summary refs log tree commit diff
path: root/pkgs/development/python-modules/httpretty
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2020-03-18 13:25:22 +0100
committerJon <jonringer@users.noreply.github.com>2020-03-18 11:38:27 -0700
commit3757e02434f4db6318eea3e1d22abe5b0da0ba30 (patch)
treed76cb2b305213fffd17224dfbb4c2ab84f811fa8 /pkgs/development/python-modules/httpretty
parent4da307759cd0e5ad604cc717e0e008241553a9fb (diff)
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).
Diffstat (limited to 'pkgs/development/python-modules/httpretty')
-rw-r--r--pkgs/development/python-modules/httpretty/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/httpretty/default.nix b/pkgs/development/python-modules/httpretty/default.nix
index 79c0fbfcac8ad..ee0e598a9ac2f 100644
--- a/pkgs/development/python-modules/httpretty/default.nix
+++ b/pkgs/development/python-modules/httpretty/default.nix
@@ -18,6 +18,10 @@ buildPythonPackage rec {
   pname = "httpretty";
   version = "0.9.7";
 
+  # drop this for version > 0.9.7
+  # Flaky tests: https://github.com/gabrielfalcao/HTTPretty/pull/394
+  doCheck = stdenv.lib.versionAtLeast version "0.9.8";
+
   src = fetchPypi {
     inherit pname version;
     sha256 = "66216f26b9d2c52e81808f3e674a6fb65d4bf719721394a1a9be926177e55fbe";