New package: py-pytest-benchmark (#21324)

* added pytest-benchmark recipe

* Update var/spack/repos/builtin/packages/py-pytest-benchmark/package.py

Added Python2 dependence.

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
bryanherman 2021-01-27 21:57:24 -05:00 committed by GitHub
parent d1ce461a81
commit fe05b16922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,21 @@
# Copyright 2013-2021 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 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"
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'))