From ca0fd306e22b7d093cb96bcb34dbe05629789994 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Thu, 18 Nov 2021 19:16:02 +0000 Subject: [PATCH] python3Packages.pyqtgraph: skip tests failing on non-x86 --- pkgs/development/python-modules/pyqtgraph/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/pyqtgraph/default.nix b/pkgs/development/python-modules/pyqtgraph/default.nix index a66afe76fd4a..854af36e5bcd 100644 --- a/pkgs/development/python-modules/pyqtgraph/default.nix +++ b/pkgs/development/python-modules/pyqtgraph/default.nix @@ -1,4 +1,5 @@ { lib +, stdenv , buildPythonPackage , fetchFromGitHub , scipy @@ -52,6 +53,13 @@ buildPythonPackage rec { export FONTCONFIG_FILE=${fontsConf} ''; + disabledTests = lib.optionals (!(stdenv.isi686 || stdenv.isx86_64)) [ + # small precision-related differences on other architectures, + # upstream doesn't consider it serious. + # https://github.com/pyqtgraph/pyqtgraph/issues/2110 + "test_PolyLineROI" + ]; + meta = with lib; { description = "Scientific Graphics and GUI Library for Python"; homepage = "https://www.pyqtgraph.org/";