summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-contextvars/package.py
blob: f8d7489bf1ee77118dad17ff98dc3a51995db26b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright 2013-2020 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)


class PyContextvars(PythonPackage):
    """This package implements a backport of Python 3.7 contextvars module
    (see PEP 567) for Python 3.6."""

    homepage = "https://github.com/MagicStack/contextvars"
    pypi = "contextvars/contextvars-2.4.tar.gz"

    version('2.4', sha256='f38c908aaa59c14335eeea12abea5f443646216c4e29380d7bf34d2018e2c39e')

    depends_on('py-setuptools', type='build')
    depends_on('py-immutables@0.9:', type=('build', 'run'))