summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-pybobyqa/package.py
blob: f86c30ae320b2eb683a8a0cbc6473bccdbfc8e11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright 2013-2023 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 PyPybobyqa(PythonPackage):
    """Py-BOBYQA is a flexible package for solving bound-constrained general
    objective minimization, without requiring derivatives of the objective."""

    homepage = "https://github.com/numericalalgorithmsgroup/pybobyqa/"
    pypi = "Py-BOBYQA/Py-BOBYQA-1.3.tar.gz"

    version("1.3", sha256="7b0b27b7b9a7cfef94557c8832c0c30757e86764e32878677427381f0691a8fb")

    depends_on("py-setuptools", type="build")
    depends_on("py-scipy@0.17:", type=("build", "run"))
    depends_on("py-pandas@0.17:", type=("build", "run"))
    depends_on("py-numpy@1.11:", type=("build", "run"))