From 9e383388864c4a9d9597c9358a0594dedbdb771e Mon Sep 17 00:00:00 2001 From: icp Date: Sun, 11 Dec 2022 01:29:40 +0530 Subject: [PATCH] py-spy: update to 0.3.14. --- srcpkgs/py-spy/template | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/srcpkgs/py-spy/template b/srcpkgs/py-spy/template index fcedf8091027..5d5be8426511 100644 --- a/srcpkgs/py-spy/template +++ b/srcpkgs/py-spy/template @@ -1,13 +1,27 @@ # Template file for 'py-spy' pkgname=py-spy -version=0.1.11 -# other archs can't compile remoteprocess -archs="x86_64* i686*" +version=0.3.14 revision=1 +# other archs can't compile remoteprocess +# archs="x86_64* i686*" build_style=cargo +make_check_args="-- --skip test_thread_reuse + --skip test_subprocesses_zombiechild + --skip test_subprocesses" +makedepends="libunwind-devel" +checkdepends="python3" short_desc="Sampling profiler for Python programs" maintainer="Wilson Birney " -license="GPL-3.0-or-later" +license="MIT" homepage="https://github.com/benfred/py-spy" -distfiles="https://github.com/benfred/py-spy/archive/v${version}.tar.gz" -checksum=399a1be66414c2f1a3d57b20d1b219393e0dfd5370815b2c0d1406fa0886917e +distfiles="https://github.com/benfred/py-spy/archive/refs/tags/v${version}.tar.gz" +checksum=c01da8b74be0daba79781cfc125ffcd3df3a0d090157fe0081c71da2f6057905 + +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 +}