17 buildPythonPackage rec {
22 src = fetchFromGitHub {
26 hash = "sha256-CKlerCUadObpPq4jQAiFDBOZMHZ4QccAKQz30OFe64E=";
48 nativeCheckInputs = [ pytestCheckHook ];
51 # tests tend to get stuck on busy hosts, increase verbosity to find out
52 # which specific tests get stuck
57 [ "test_all_cases_covered" ]
58 ++ lib.optionals (stdenv.buildPlatform.system == "x86_64-linux") [
59 # stuck tests on hydra
60 "test_moo_predictive_entropy_search"
62 ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
63 # Numerical error slightly above threshold
64 # AssertionError: Tensor-likes are not close!
65 "test_model_list_gpytorch_model"
68 pythonImportsCheck = [ "botorch" ];
70 # needs lots of undisturbed CPU time or prone to getting stuck
71 requiredSystemFeatures = [ "big-parallel" ];
74 changelog = "https://github.com/pytorch/botorch/blob/${src.rev}/CHANGELOG.md";
75 description = "Bayesian Optimization in PyTorch";
76 homepage = "https://botorch.org";
77 license = lib.licenses.mit;
78 maintainers = with lib.maintainers; [ veprbl ];