diff options
author | ajw1980 <ajw1980@gmail.com> | 2019-03-26 15:10:35 -0500 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-03-26 15:10:35 -0500 |
commit | 7a4712b90a34a0234acc650b1e0ff7a1f42356eb (patch) | |
tree | 6a167b87a9f48dacb26c8154214bfea06c6690e1 /var | |
parent | 48a8ee03631589e6c85ba3d5358cc326a57ba43a (diff) | |
download | spack-7a4712b90a34a0234acc650b1e0ff7a1f42356eb.tar.gz spack-7a4712b90a34a0234acc650b1e0ff7a1f42356eb.tar.bz2 spack-7a4712b90a34a0234acc650b1e0ff7a1f42356eb.tar.xz spack-7a4712b90a34a0234acc650b1e0ff7a1f42356eb.zip |
New package: py-scikit-optimize (#10973)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-scikit-optimize/package.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-scikit-optimize/package.py b/var/spack/repos/builtin/packages/py-scikit-optimize/package.py new file mode 100644 index 0000000000..6ead324903 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-scikit-optimize/package.py @@ -0,0 +1,32 @@ +# Copyright 2013-2019 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 PyScikitOptimize(PythonPackage): + """Scikit-Optimize, or skopt, is a simple and efficient library to + minimize (very) expensive and noisy black-box functions. It implements + several methods for sequential model-based optimization. skopt aims to + be accessible and easy to use in many contexts. + + The library is built on top of NumPy, SciPy and Scikit-Learn.""" + + homepage = "https://scikit-optimize.github.io" + url = "https://pypi.io/packages/source/s/scikit-optimize/scikit-optimize-0.5.2.tar.gz" + + version('0.5.2', sha256='1d7657a4b8ef9aa6d81e49b369c677c584e83269f11710557741d3b3f8fa0a75') + + variant('plots', default=True, + description='Build with plot support from py-matplotlib') + + depends_on('python@2.7:2.8,3.4:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-numpy', type=('build', 'run')) + depends_on('py-scikit-learn@0.19.0:', type=('build', 'run')) + depends_on('py-scipy@0.14.0:', type=('build', 'run')) + + depends_on('py-matplotlib', when='+plots') + depends_on('py-test@3.3.0:', type='test') |