python312Packages.ndindex: fix Hypothesis test timeouts (#378789)

Changed files
+21 -2
pkgs
development
python-modules
ndindex
+21 -2
pkgs/development/python-modules/ndindex/default.nix
···
lib,
buildPythonPackage,
fetchFromGitHub,
+
python,
# build-system
cython,
···
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 <<EOF
+
+
import hypothesis
+
+
hypothesis.settings.register_profile(
+
"ci",
+
deadline=None,
+
print_blob=True,
+
derandomize=True,
+
)
+
EOF
'';
nativeCheckInputs = [
···
sympy
] ++ optional-dependencies.arrays;
+
pytestFlagsArray = [
+
"--hypothesis-profile"
+
"ci"
+
];
+
meta = with lib; {
-
description = "";
+
description = "Python library for manipulating indices of ndarrays";
homepage = "https://github.com/Quansight-Labs/ndindex";
changelog = "https://github.com/Quansight-Labs/ndindex/releases/tag/${version}";
license = licenses.mit;