py-pytest-html recipe (#22221)

* py-pytest-html recipe

* added missing deps + copyright

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

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

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

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

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
BerengerBerthoul 2021-03-12 03:17:12 +01:00 committed by GitHub
parent bb4ccdfa91
commit ca4a566443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,23 @@
# 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 PyPytestHtml(PythonPackage):
"""pytest-html is a plugin for pytest that generates
a HTML report for test results
"""
homepage = "https://github.com/pytest-dev/pytest-html"
pypi = "pytest-html/pytest-html-3.1.1.tar.gz"
version('3.1.1', sha256='3ee1cf319c913d19fe53aeb0bc400e7b0bc2dbeb477553733db1dad12eb75ee3')
depends_on('python@3.6:', type=('build', 'run'))
depends_on('py-setuptools', type='build')
depends_on('py-setuptools-scm', type='build')
depends_on('py-pytest@5.0:5.999,6.0.1:', type=('build', 'run'))
depends_on('py-pytest-metadata', type=('build', 'run'))

View File

@ -0,0 +1,20 @@
# 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 PyPytestMetadata(PythonPackage):
"""pytest plugin for test session metadata"""
homepage = "https://github.com/pytest-dev/pytest-metadata"
pypi = "pytest-metadata/pytest-metadata-1.11.0.tar.gz"
version('1.11.0', sha256='71b506d49d34e539cc3cfdb7ce2c5f072bea5c953320002c95968e0238f8ecf1')
depends_on('python@2.7:2.8,3.6:', type=('build', 'run'))
depends_on('py-setuptools', type='build')
depends_on('py-setuptools-scm', type='build')
depends_on('py-pytest@2.9:', type=('build', 'run'))