summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-gcovr/package.py
blob: bd26134bc260ca3a406ab71753e43d9245ac43f0 (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-2024 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 PyGcovr(PythonPackage):
    """Gcovr provides a utility for managing the use of the GNU gcov utility
    and generating summarized code coverage results. This command is inspired
    by the Python coverage.py package, which provides a similar utility for
    Python."""

    homepage = "https://gcovr.com/"
    pypi = "gcovr/gcovr-4.2.tar.gz"

    version("5.2", sha256="217195085ec94346291a87b7b1e6d9cfdeeee562b3e0f9a32b25c9530b3bce8f")
    version("4.2", sha256="5aae34dc81e51600cfecbbbce3c3a80ce3f7548bc0aa1faa4b74ecd18f6fca3f")

    depends_on("python@3.7:", when="@5.1:", type=("build", "run"))
    depends_on("python@3.6:", when="@5.0", type=("build", "run"))
    depends_on("python@2.7:2,3.5:", when="@:4", type=("build", "run"))
    depends_on("py-setuptools", type=("build", "run"))

    depends_on("py-jinja2", type=("build", "run"))
    depends_on("py-lxml", type=("build", "run"))
    depends_on("py-pygments", when="@5:", type=("build", "run"))