summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-pytest-benchmark/package.py
blob: 00f9742b88d06a2b2ae31b67a065b573f8857d96 (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
# 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 PyPytestBenchmark(PythonPackage):
    """A pytest fixture for benchmarking code."""

    homepage = "https://github.com/ionelmc/pytest-benchmark"
    pypi = "pytest-benchmark/pytest-benchmark-3.2.3.tar.gz"

    license("BSD-2-Clause")

    version("3.2.3", sha256="ad4314d093a3089701b24c80a05121994c7765ce373478c8f4ba8d23c9ba9528")

    depends_on("python@2.7:2.8,3.5:", type=("build", "run"))
    depends_on("py-setuptools", type="build")
    depends_on("py-pytest@3.8:", type=("build", "run"))
    depends_on("py-py-cpuinfo", type=("build", "run"))