From d36583f327e1045cf3e0179beced314dcd556efb Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 26 Jan 2026 17:54:28 +0100 Subject: [PATCH] python3Packages.seaborn: pin to pytest 8.3, fix numpy 2.4 compat --- pkgs/development/python-modules/seaborn/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/seaborn/default.nix b/pkgs/development/python-modules/seaborn/default.nix index 196176ce5124..290631786c57 100644 --- a/pkgs/development/python-modules/seaborn/default.nix +++ b/pkgs/development/python-modules/seaborn/default.nix @@ -7,7 +7,7 @@ flit-core, matplotlib, pytest-xdist, - pytestCheckHook, + pytest8_3CheckHook, numpy, pandas, scipy, @@ -39,6 +39,11 @@ buildPythonPackage rec { url = "https://github.com/mwaskom/seaborn/commit/385e54676ca16d0132434bc9df6bc41ea8b2a0d4.patch"; hash = "sha256-nwGwTkP7W9QzgbbAVdb2rASgsMxqFnylMk8GnTE445w="; }) + (fetchpatch2 { + name = "numpy-2.4-compat.patch"; + url = "https://github.com/mwaskom/seaborn/commit/5023f2ee885a45200f5b63156a158ddf7272c29e.patch"; + hash = "sha256-T3OfjEEsPRRv1J6gdq9XmwcWEpPMDzul+LmK8UtV7nk="; + }) ]; nativeBuildInputs = [ flit-core ]; @@ -58,7 +63,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytest-xdist - pytestCheckHook + pytest8_3CheckHook ]; disabledTests = [