From f13d239861c6f837031201c96ff7fdb4849fb26f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 23 Aug 2023 22:53:02 +0200 Subject: [PATCH] python310Packages.ml-dtypes: relax build deps --- pkgs/development/python-modules/ml-dtypes/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/ml-dtypes/default.nix b/pkgs/development/python-modules/ml-dtypes/default.nix index c329196d51de..eae60372af0d 100644 --- a/pkgs/development/python-modules/ml-dtypes/default.nix +++ b/pkgs/development/python-modules/ml-dtypes/default.nix @@ -27,6 +27,14 @@ buildPythonPackage rec { fetchSubmodules = true; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace "numpy~=1.21.2" "numpy" \ + --replace "numpy~=1.23.3" "numpy" \ + --replace "pybind11~=2.10.0" "pybind11" \ + --replace "setuptools~=67.6.0" "setuptools" + ''; + nativeBuildInputs = [ setuptools pybind11