summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-xmlrunner/package.py
blob: c27223bcd6077ee11c0825ce6d5e033947f1f35a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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 PyXmlrunner(PythonPackage):
    """PyUnit-based test runner with JUnit like XML reporting."""

    homepage = "https://github.com/pycontribs/xmlrunner"
    pypi = "xmlrunner/xmlrunner-1.7.7.tar.gz"

    version('1.7.7', sha256='5a6113d049eca7646111ee657266966e5bbfb0b5ceb2e83ee0772e16d7110f39')

    depends_on('py-setuptools', type='build')
    depends_on('py-unittest2', type=('build', 'run'), when='^python@:2.8')