From 03bcb3405f6b066494fefadf266c24111b81fc3f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 29 Sep 2024 17:05:49 +0200 Subject: [PATCH] python3Packages.osqp: 0.6.7 -> 0.6.7.post1 --- pkgs/development/python-modules/osqp/default.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/osqp/default.nix b/pkgs/development/python-modules/osqp/default.nix index d3dbb48df72f..ef8db9f8b297 100644 --- a/pkgs/development/python-modules/osqp/default.nix +++ b/pkgs/development/python-modules/osqp/default.nix @@ -16,28 +16,35 @@ buildPythonPackage rec { pname = "osqp"; - version = "0.6.7"; + version = "0.6.7.post1"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-O3ARmFV6SZxg67U9fyUBkGSFXHMvTz+84gVdeJ5Tph0="; + hash = "sha256-VUqhDcqEgZeLTTNOKCAfJO0Y8pTFqENQziAiqLePTXI="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "numpy >= 2.0.0" numpy + ''; + dontUseCmakeConfigure = true; nativeBuildInputs = [ cmake + numpy oldest-supported-numpy setuptools-scm ]; - pythonRelaxDeps = [ "scipy" ]; + pythonRelaxDeps = [ + "scipy" + ]; propagatedBuildInputs = [ - future numpy qdldl scipy