From 8ba3f30f5c1e381be4dd608b2dff70fd1b35413a Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Mon, 5 Oct 2020 02:20:48 -0500 Subject: [PATCH] py-contextvars: added new package at v2.4 (#19149) --- .../builtin/packages/py-contextvars/package.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-contextvars/package.py diff --git a/var/spack/repos/builtin/packages/py-contextvars/package.py b/var/spack/repos/builtin/packages/py-contextvars/package.py new file mode 100644 index 0000000000..a0c1a87499 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-contextvars/package.py @@ -0,0 +1,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" + url = "https://pypi.io/packages/source/c/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'))