summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-aiocontextvars/package.py
blob: 15229e0668b704e4ed61cee1e77d9ca8f60e1914 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright 2013-2022 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.package import *


class PyAiocontextvars(PythonPackage):
    """This library experimentally provides the missing asyncio support for
    the contextvars backport library."""

    homepage = "https://github.com/fantix/aiocontextvars"
    pypi = "aiocontextvars/aiocontextvars-0.2.2.tar.gz"

    version("0.2.2", sha256="f027372dc48641f683c559f247bd84962becaacdc9ba711d583c3871fb5652aa")

    depends_on("python@3.5:", type=("build", "run"))
    depends_on("py-setuptools", type="build")
    depends_on("py-contextvars@2.4", when="^python@:3.6", type=("build", "run"))
    depends_on("py-pytest-runner", type="build")