Zachary Hanham 19a90633c9
py-spy: update to 0.4.0.
Closes: #53462 [via git-merge-pr]
2024-12-24 14:07:25 -05:00

34 lines
929 B
Bash

# Template file for 'py-spy'
pkgname=py-spy
version=0.4.0
revision=1
# musl archs can't compile remoteprocess
archs="~*-musl"
build_style=cargo
build_helper=qemu
makedepends="libunwind-devel"
checkdepends="python3"
short_desc="Sampling profiler for Python programs"
maintainer="Wilson Birney <wpb@360scada.com>"
license="MIT"
homepage="https://github.com/benfred/py-spy"
distfiles="https://github.com/benfred/py-spy/archive/refs/tags/v${version}.tar.gz"
checksum=13a5c4b949947425670eedac05b6dd27edbc736b75f1587899efca1a7ef79ac3
case "$XBPS_TARGET_MACHINE" in
ppc) broken="error[E0425]: cannot find function get_interp_head_offset in module pyruntime";;
esac
pre_check() {
rm -f tests/integration_test.rs
}
post_install() {
local py_spy="${DESTDIR}/usr/bin/py-spy"
for shell in bash fish zsh; do
vtargetrun ${py_spy} completions ${shell} > py_spy.${shell}
vcompletion py_spy.${shell} ${shell}
done
vlicense LICENSE
}