summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-future/package.py
blob: 2a37608935581acbdcc79b608c3ff22aec0eb2d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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 PyFuture(PythonPackage):
    """Clean single-source support for Python 3 and 2"""

    homepage = "https://python-future.org/"
    url = "https://pypi.io/packages/source/f/future/future-0.16.0.tar.gz"

    version('0.16.0', '3e8e88a2bda48d54b1da7634d04760d7')
    version('0.15.2', 'a68eb3c90b3b76714c5ceb8c09ea3a06')

    depends_on('py-setuptools', type='build')
    depends_on('py-importlib', type=('build', 'run'), when='^python@:2.6')
    depends_on('py-argparse', type=('build', 'run'), when='^python@:2.6')