From 3757e02434f4db6318eea3e1d22abe5b0da0ba30 Mon Sep 17 00:00:00 2001 From: Timo Kaufmann Date: Wed, 18 Mar 2020 13:25:22 +0100 Subject: [PATCH] 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). --- pkgs/development/python-modules/httpretty/default.nix | 4 ++++ 1 file changed, 4 insertions(+) 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";