summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-unittest2/package.py
blob: 635ba1cedaa27e5af39a372599cd47267c840492 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2013-2018 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 PyUnittest2(PythonPackage):
    """unittest2 is a backport of the new features added to the unittest
    testing framework in Python 2.7 and onwards."""

    homepage = "https://pypi.python.org/pypi/unittest2"
    url      = "https://pypi.io/packages/source/u/unittest2/unittest2-1.1.0.tar.gz"

    version('1.1.0', 'f72dae5d44f091df36b6b513305ea000')

    depends_on('py-setuptools', type='build')
    depends_on('py-enum34', when='^python@:3.3', type=('build', 'run'))
    depends_on('py-traceback2', type=('build', 'run'))
    depends_on('py-six', type=('build', 'run'))
    depends_on('py-argparse', type=('build', 'run'))