python312Packages.freud: fix numpy version check

This commit is contained in:
Doron Behar
2024-07-10 12:23:22 +03:00
parent e691f848a2
commit 157eb0e4eb
@@ -39,6 +39,13 @@ buildPythonPackage rec {
touch extern/{voro++,fsph,Eigen}/.git
'';
# Scipy still depends on numpy 1, and so we'd get 'package duplicates in
# closure' error if we'd use numpy_2
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'numpy>=2.0.0rc1' 'numpy' \
'';
nativeBuildInputs = [
cmake
cython