From 1ccd7e5a89809bff48d57b709bf94388a811b479 Mon Sep 17 00:00:00 2001 From: Sinan Date: Tue, 27 Aug 2019 18:18:14 -0700 Subject: [PATCH] New package: py-nose2 (#12522) --- .../builtin/packages/py-nose2/package.py | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-nose2/package.py diff --git a/var/spack/repos/builtin/packages/py-nose2/package.py b/var/spack/repos/builtin/packages/py-nose2/package.py new file mode 100644 index 0000000000..880d1fe42f --- /dev/null +++ b/var/spack/repos/builtin/packages/py-nose2/package.py @@ -0,0 +1,22 @@ +# Copyright 2013-2019 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 PyNose2(PythonPackage): + """unittest2 with plugins, the succesor to nose""" + + homepage = "https://github.com/nose-devs/nose2" + url = "https://pypi.io/packages/source/n/nose2/nose2-0.9.1.tar.gz" + + version('0.9.1', sha256='0ede156fd7974fa40893edeca0b709f402c0ccacd7b81b22e76f73c116d1b999') + version('0.6.0', sha256='daa633e92a52e0db60ade7e105a2ba5cad7ac819f3608740dcfc6140b9fd0a94') + + depends_on('py-setuptools', type='build') + depends_on('py-six@1.7:', type=('build', 'run')) + depends_on('py-cov-core@1.12:', type=('build', 'run'), when='@0.6.0:0.6.5') + depends_on('py-coverage@4.4.1:', type=('build', 'run'), when='@0.7.0:') + depends_on('py-mock@2.0.0:', type=('build', 'run'), when='^python@2.7:3.5.99')