spack/var/spack/repos/builtin/packages/py-typing/package.py

22 lines
716 B
Python
Raw Normal View History

# 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 PyTyping(PythonPackage):
"""This is a backport of the standard library typing module to Python
versions older than 3.6."""
homepage = "https://docs.python.org/3/library/typing.html"
url = "https://pypi.io/packages/source/t/typing/typing-3.6.1.tar.gz"
import_modules = ['typing']
version('3.6.1', '3fec97415bae6f742fb3c3013dedeb89')
# You need Python 2.7 or 3.3+ to install the typing package
depends_on('python@2.7:2.8,3.3:', type=('build', 'run'))