Something went wrong. Try again.
lol
Something went wrong. Try again.
1.4 kB · 71 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172{ lib, stdenv, buildPythonPackage, fetchFromGitHub,
# build-system uv-build,
# dependencies scikit-learn, numpy, scipy, colorama, packaging,
# tests jupyter, matplotlib, nbconvert, nbformat, pytestCheckHook,}:
buildPythonPackage rec { pname = "bayesian-optimization"; version = "3.2.1"; pyproject = true;
src = fetchFromGitHub { owner = "bayesian-optimization"; repo = "BayesianOptimization"; tag = "v${version}"; hash = "sha256-pTtwuBQUdVsi98nndEyY9mawGiTwjgiD05EsQwQFiPo="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "uv_build>=0.7.21,<0.8.0" "uv_build" '';
build-system = [ uv-build ];
dependencies = [ scikit-learn numpy scipy colorama packaging ];
nativeCheckInputs = [ jupyter matplotlib nbconvert nbformat pytestCheckHook ];
pythonImportsCheck = [ "bayes_opt" ];
__darwinAllowLocalNetworking = true;
meta = { description = "Python implementation of global optimization with gaussian processes"; homepage = "https://github.com/bayesian-optimization/BayesianOptimization"; changelog = "https://github.com/bayesian-optimization/BayesianOptimization/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = [ lib.maintainers.juliendehos ]; };}