py-memray: add new package (#31033)

* py-memray: add new package

* Link to Python

* Add missing non-Python deps
This commit is contained in:
Adam J. Stewart 2022-06-08 13:52:38 -07:00 committed by GitHub
parent dc0c4959db
commit 31f6dedecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,27 @@
# 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 PyMemray(PythonPackage):
"""A memory profiler for Python applications."""
homepage = "https://github.com/bloomberg/memray"
pypi = "memray/memray-1.1.0.tar.gz"
version('1.1.0', sha256='876e46e0cd42394be48b33f81314bc946f4eb023b04bf1def084c25ccf1d2bb6')
depends_on('python@3.7:', type=('build', 'link', 'run'))
depends_on('py-setuptools', type='build')
depends_on('py-cython', type='build')
depends_on('py-jinja2', type=('build', 'run'))
depends_on('py-typing-extensions', when='^python@:3.7', type=('build', 'run'))
depends_on('py-rich', type=('build', 'run'))
depends_on('libunwind')
depends_on('lz4')
conflicts('platform=darwin', msg='memray only supports Linux platforms')
conflicts('platform=windows', msg='memray only supports Linux platforms')