From f536ded3289cbdbda0b0efe92113d63d71a56ff3 Mon Sep 17 00:00:00 2001 From: Jen Herting Date: Mon, 25 Jan 2021 23:32:55 -0500 Subject: [PATCH] New package: py-bayesian-optimization (#20746) * [py-bayesian-optimization] created template * [py-bayesian-optimization] added dependencies * [py-bayesian-optimization] removed fixmes, added homepage and description * [py-bayesian-optimization] added dependency on setuptools * [py-bayesian-optimization] changed url to pypi and updated checksum * [py-bayesian-optimization] url -> pypi --- .../py-bayesian-optimization/package.py | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-bayesian-optimization/package.py diff --git a/var/spack/repos/builtin/packages/py-bayesian-optimization/package.py b/var/spack/repos/builtin/packages/py-bayesian-optimization/package.py new file mode 100644 index 0000000000..301b79e3cf --- /dev/null +++ b/var/spack/repos/builtin/packages/py-bayesian-optimization/package.py @@ -0,0 +1,21 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class PyBayesianOptimization(PythonPackage): + """Pure Python implementation of bayesian global + optimization with gaussian processes.""" + + homepage = "https://github.com/fmfn/BayesianOptimization" + pypi = 'bayesian-optimization/bayesian-optimization-1.2.0.tar.gz' + + version('1.2.0', sha256='c2fd3af4b6cc24ee1c145295b2a900ffb9b455cad924e8185a8d5784712bc935') + + depends_on('py-setuptools', type='build') + depends_on("py-numpy@1.9.0:", type=('build', 'run')) + depends_on("py-scipy@0.14.0:", type=('build', 'run')) + depends_on("py-scikit-learn@0.18.0:", type=('build', 'run'))