summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-botorch/package.py
blob: f4133444f32e6a212b3c3921da90997c17542cd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Copyright 2013-2022 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.package import *


class PyBotorch(PythonPackage):
    """BoTorch is a library for Bayesian Optimization built on PyTorch."""

    homepage = "https://botorch.org/"
    pypi     = "botorch/botorch-0.6.4.tar.gz"

    maintainers = ['adamjstewart']

    version('0.6.4', sha256='3fd28417f55749501a45378f72cd5ca7614e2e05b7b65c6b4eb9b72378bc665a')

    depends_on('python@3.7:', type=('build', 'run'))
    # TODO: replace this after concretizer learns how to concretize separate build deps
    depends_on('py-setuptools', type='build')
    # depends_on('py-setuptools@:47', type='build')
    depends_on('py-setuptools-scm', type='build')
    depends_on('py-torch@1.9:', type=('build', 'run'))
    depends_on('py-gpytorch@1.6:', type=('build', 'run'))
    depends_on('py-scipy', type=('build', 'run'))
    depends_on('py-multipledispatch', type=('build', 'run'))
    depends_on('py-pyro-ppl@1.8.0', type=('build', 'run'))