From 61d0d004f84343bfffb9a631092b21e41adf6ded Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Sat, 20 Jul 2024 15:51:43 -0400 Subject: [PATCH] python312Packages.botorch: relax gpytorch version requirement and migrate to PEP517 lingo for dependencies. Co-Authored-By: Martin Weinelt --- pkgs/development/python-modules/botorch/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/botorch/default.nix b/pkgs/development/python-modules/botorch/default.nix index 129facf57de1..06f0922af4b1 100644 --- a/pkgs/development/python-modules/botorch/default.nix +++ b/pkgs/development/python-modules/botorch/default.nix @@ -26,13 +26,13 @@ buildPythonPackage rec { hash = "sha256-YX/G46U09y/VZuWZhKY8zU0Y+bf0NKumzSGYUWvrq/0="; }; - nativeBuildInputs = [ + build-system = [ setuptools setuptools-scm wheel ]; - propagatedBuildInputs = [ + dependenciess = [ gpytorch linear-operator multipledispatch @@ -41,9 +41,13 @@ buildPythonPackage rec { torch ]; - pythonRelaxDeps = [ "linear-operator" ]; + pythonRelaxDeps = [ + "gpytorch" + "linear-operator" + ]; + + nativeCheckInputs = [ pytestCheckHook ]; - checkInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "botorch" ]; meta = with lib; {