void-packages/srcpkgs/py-spy/template

35 lines
921 B
Bash

# Template file for 'py-spy'
pkgname=py-spy
version=0.3.14
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=c01da8b74be0daba79781cfc125ffcd3df3a0d090157fe0081c71da2f6057905
pre_build() {
# fixes the usage of yanked versions of crates
cargo update --package quick-xml@0.23.0 --precise 0.23.1
}
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
}