From 71f379dea1b43eb02d5d96b97cfd5cce46b9eddd Mon Sep 17 00:00:00 2001
From: Philip Wilk
Date: Sun, 15 Mar 2026 12:38:26 +0000
Subject: [PATCH] mlxtend: skip failing test_perceptron tests
---
pkgs/development/python-modules/mlxtend/default.nix | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/pkgs/development/python-modules/mlxtend/default.nix b/pkgs/development/python-modules/mlxtend/default.nix
index faaac7767f54..8b0cf517676d 100644
--- a/pkgs/development/python-modules/mlxtend/default.nix
+++ b/pkgs/development/python-modules/mlxtend/default.nix
@@ -47,6 +47,14 @@ buildPythonPackage rec {
"test_invalid_labels_1"
"test_default"
"test_nullability"
+ # see upstream issue https://github.com/rasbt/mlxtend/issues/1161
+ # skip the "TypeError: only 0-dimensional arrays can be converted to Python scalars" failures in test_perceptron
+ "test_standardized_iris_data"
+ "test_progress_1"
+ "test_progress_2"
+ "test_progress_3"
+ "test_score_function"
+ "test_nonstandardized_iris_data"
];
disabledTestPaths = [