spack/var/spack/repos/builtin/packages/py-memray/package.py
Harmen Stoppels fce95e2efb
license year bump (#34921)
* license bump year
* fix black issues of modified files
* mypy
* fix 2021 -> 2023
2023-01-18 14:30:17 -08:00

28 lines
1.0 KiB
Python

# Copyright 2013-2023 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")