summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-tap-py/package.py
blob: 830b176642f1d4897724cd738e7b0b48e3819715 (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
# 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 PyTapPy(PythonPackage):
    """Python TAP interface module for unit tests"""

    homepage = "https://github.com/python-tap/tappy"
    pypi = "tap.py/tap.py-3.0.tar.gz"

    version('3.0',   sha256='f5eeeeebfd64e53d32661752bb4c288589a3babbb96db3f391a4ec29f1359c70')
    version('2.6.2', sha256='5f219d92dbad5e378f8f7549cdfe655b0d5fd2a778f9c83bee51b61c6ca40efb')
    version('1.6',   sha256='3ee315567cd1cf444501c405b7f7146ffdb2e630bac58d0840d378a3b9a0dbe4', deprecated=True)

    extends('python', ignore='bin/nosetests|bin/pygmentize')

    depends_on('python@3.5:3.7', when='@3.0:')
    depends_on('python@2.7:2.8,3.5:3.7', when='@2.6')
    depends_on('python@2.6:2.8,3.2:3.4', when='@:1.8')
    depends_on('py-nose', type=('build', 'run'), when='@:1')
    depends_on('py-pygments', type=('build', 'run'), when='@:1')
    depends_on('py-setuptools', type=('build', 'run'))