From c4a3bb3ee1f87bd88d812b60a21283bb1dbee8ad Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 27 Apr 2026 16:57:41 +0300 Subject: [PATCH 1/3] pyqtgraph: switch to finalAttrs pattern --- pkgs/development/python-modules/pyqtgraph/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pyqtgraph/default.nix b/pkgs/development/python-modules/pyqtgraph/default.nix index 64833cb7323a..56797da56352 100644 --- a/pkgs/development/python-modules/pyqtgraph/default.nix +++ b/pkgs/development/python-modules/pyqtgraph/default.nix @@ -26,7 +26,7 @@ let fontsConf = makeFontsConf { fontDirectories = [ freefont_ttf ]; }; in -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pyqtgraph"; version = "0.14.0"; pyproject = true; @@ -34,7 +34,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "pyqtgraph"; repo = "pyqtgraph"; - tag = "pyqtgraph-${version}"; + tag = "pyqtgraph-${finalAttrs.version}"; hash = "sha256-T5rhaBtcKP/sYjCmYNMYR0BGttkiLhWTfEbZNeAdJJ0="; }; @@ -89,7 +89,7 @@ buildPythonPackage rec { meta = { description = "Scientific Graphics and GUI Library for Python"; homepage = "https://www.pyqtgraph.org/"; - changelog = "https://github.com/pyqtgraph/pyqtgraph/blob/${src.tag}/CHANGELOG"; + changelog = "https://github.com/pyqtgraph/pyqtgraph/blob/${finalAttrs.src.tag}/CHANGELOG"; license = lib.licenses.mit; platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ @@ -97,4 +97,4 @@ buildPythonPackage rec { doronbehar ]; }; -} +}) From 65e2571652b349daa90a6da5068f0949f09616f9 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 27 Apr 2026 17:18:39 +0300 Subject: [PATCH 2/3] python3.pkgs.pyqtgraph: report upstream test failures This is a fixup to commit bb5507a274d41dbc79103a6b75e5c8967b75f54c --- pkgs/development/python-modules/pyqtgraph/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyqtgraph/default.nix b/pkgs/development/python-modules/pyqtgraph/default.nix index 56797da56352..d021a3e4c6c7 100644 --- a/pkgs/development/python-modules/pyqtgraph/default.nix +++ b/pkgs/development/python-modules/pyqtgraph/default.nix @@ -70,10 +70,9 @@ buildPythonPackage (finalAttrs: { ]; disabledTests = [ - # ZeroDivisionError: float division by zero + # See https://github.com/pyqtgraph/pyqtgraph/issues/3485 "test_maps_tick_values_to_local_times" "test_maps_hour_ticks_to_local_times_when_skip_greater_than_one" - ] ++ lib.optionals (!stdenv.hostPlatform.isx86) [ # small precision-related differences on other architectures, From 571df72d2e5415206b410824eb10ad96bea23245 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 27 Apr 2026 17:19:28 +0300 Subject: [PATCH 3/3] python3.pkgs.pyqtgraph: disable more failing tests reported upstream --- pkgs/development/python-modules/pyqtgraph/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/pyqtgraph/default.nix b/pkgs/development/python-modules/pyqtgraph/default.nix index d021a3e4c6c7..6ee92d850f6e 100644 --- a/pkgs/development/python-modules/pyqtgraph/default.nix +++ b/pkgs/development/python-modules/pyqtgraph/default.nix @@ -73,6 +73,8 @@ buildPythonPackage (finalAttrs: { # See https://github.com/pyqtgraph/pyqtgraph/issues/3485 "test_maps_tick_values_to_local_times" "test_maps_hour_ticks_to_local_times_when_skip_greater_than_one" + "test_plotscene" + "test_simple" ] ++ lib.optionals (!stdenv.hostPlatform.isx86) [ # small precision-related differences on other architectures,