{ lib, buildPythonPackage, fetchFromGitHub, python, # build-system cython, setuptools, # optional numpy, # tests hypothesis, pytest-cov-stub, pytestCheckHook, sympy, }: buildPythonPackage rec { pname = "ndindex"; version = "1.9.2"; pyproject = true; src = fetchFromGitHub { owner = "Quansight-Labs"; repo = "ndindex"; tag = version; hash = "sha256-5S4HN5MFLgURImwFsyyTOxDhrZJ5Oe+Ln/TA/bsCsek="; }; build-system = [ cython setuptools ]; postPatch = '' substituteInPlace pytest.ini \ --replace-fail "--flakes" "" ''; optional-dependencies.arrays = [ numpy ]; pythonImportsCheck = [ "ndindex" ]; # fix Hypothesis timeouts preCheck = '' cd $out echo > ${python.sitePackages}/ndindex/tests/conftest.py <