From 95a92d59ddb99dc714d0f8a51f8d45a298ebc01c Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Sun, 2 Feb 2025 11:26:58 +0100 Subject: [PATCH] python312Packages.ndindex: fix Hypothesis test timeouts --- .../python-modules/ndindex/default.nix | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ndindex/default.nix b/pkgs/development/python-modules/ndindex/default.nix index ad222111112d..2c8fec5e26d3 100644 --- a/pkgs/development/python-modules/ndindex/default.nix +++ b/pkgs/development/python-modules/ndindex/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + python, # build-system cython, @@ -36,15 +37,28 @@ buildPythonPackage rec { postPatch = '' substituteInPlace pytest.ini \ - --replace "--flakes" "" + --replace-fail "--flakes" "" ''; optional-dependencies.arrays = [ numpy ]; pythonImportsCheck = [ "ndindex" ]; + # fix Hypothesis timeouts preCheck = '' cd $out + + echo > ${python.sitePackages}/ndindex/tests/conftest.py <