summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-pytest-timeout/package.py
blob: cd6cfe42e927f329756a493a07f3d011142b5fa4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright 2013-2022 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 PyPytestTimeout(PythonPackage):
    """A plugin which will terminate tests after a certain timeout,
       assuming the test session isn't being debugged."""

    homepage = "https://github.com/pytest-dev/pytest-timeout/"
    pypi     = "pytest-timeout/pytest-timeout-1.4.2.tar.gz"

    version('1.4.2', sha256='20b3113cf6e4e80ce2d403b6fb56e9e1b871b510259206d40ff8d609f48bda76')

    depends_on('python@2.7:2.8,3.5:', type=('build', 'run'))
    depends_on('py-setuptools', type='build')
    depends_on('py-pytest@3.6.0:', type=('build', 'run'))