diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2020-10-05 04:57:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 11:57:33 +0200 |
commit | 7ac96e63d27d82fc08ec58f4a471d53af69df97c (patch) | |
tree | 160f4ff10c9f2700a297c6f7a7552e1cc23bf338 | |
parent | 1450038f9294a3272b372c6cddf3a47225b972d3 (diff) | |
download | spack-7ac96e63d27d82fc08ec58f4a471d53af69df97c.tar.gz spack-7ac96e63d27d82fc08ec58f4a471d53af69df97c.tar.bz2 spack-7ac96e63d27d82fc08ec58f4a471d53af69df97c.tar.xz spack-7ac96e63d27d82fc08ec58f4a471d53af69df97c.zip |
py-opencensus-context: added new package at v0.1.1 (#19003)
-rw-r--r-- | var/spack/repos/builtin/packages/py-opencensus-context/package.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-opencensus-context/package.py b/var/spack/repos/builtin/packages/py-opencensus-context/package.py new file mode 100644 index 0000000000..87d7d25c30 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-opencensus-context/package.py @@ -0,0 +1,21 @@ +# 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 PyOpencensusContext(Package): + """OpenCensus Runtime Context.""" + + homepage = "https://github.com/census-instrumentation/opencensus-python/tree/master/context/opencensus-context" + url = "https://pypi.io/packages/py2.py3/o/opencensus-context/opencensus_context-0.1.1-py2.py3-none-any.whl" + + version('0.1.1', sha256='1a3fdf6bec537031efcc93d51b04f1edee5201f8c9a0c85681d63308b76f5702', expand=False) + + extends('python') + depends_on('py-pip', type='build') + depends_on('py-contextvars', when='^python@3.6.0:3.6.999', type=('build', 'run')) + + def install(self, spec, prefix): + pip = which('pip') + pip('install', self.stage.archive_file, '--prefix={0}'.format(prefix)) |