New package: memray-1.7.0

This commit is contained in:
icp 2023-04-07 22:32:18 +05:30 committed by Duncan Overbruck
parent 64bbc42b98
commit b17d742c50

26
srcpkgs/memray/template Normal file
View File

@ -0,0 +1,26 @@
# Template file for 'memray'
pkgname=memray
version=1.7.0
revision=1
build_style=python3-pep517
make_check_target="tests/unit"
hostmakedepends="python3-setuptools python3-wheel python3-Cython"
makedepends="python3-devel libunwind-devel liblz4-devel"
depends="python3-Jinja2 python3-rich"
checkdepends="${depends} python3-pytest"
short_desc="Reports memory allocations in python code & compiled extensions"
maintainer="icp <pangolin@vivaldi.net>"
license="Apache-2.0"
homepage="https://bloomberg.github.io/memray/"
changelog="https://bloomberg.github.io/memray/changelog.html"
distfiles="https://github.com/bloomberg/memray/archive/refs/tags/v${version}.tar.gz"
checksum=0c735753d6d8a9050c9313c55ee41bfca271c3dec7cc37d2ed01eba5d358a7d6
make_check_pre="env PYTHONPATH=src"
pre_build() {
export MEMRAY_LIBBACKTRACE_TARGET="${XBPS_TARGET_MACHINE%-musl}"
}
pre_check() {
python3 setup.py build_ext --inplace
}