diff --git a/srcpkgs/py-spy/template b/srcpkgs/py-spy/template
index 44074fe4de2..835c5712055 100644
--- a/srcpkgs/py-spy/template
+++ b/srcpkgs/py-spy/template
@@ -1,6 +1,6 @@
 # Template file for 'py-spy'
 pkgname=py-spy
-version=0.3.14
+version=0.4.0
 revision=1
 # musl archs can't compile remoteprocess
 archs="~*-musl"
@@ -13,17 +13,12 @@ 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
+checksum=13a5c4b949947425670eedac05b6dd27edbc736b75f1587899efca1a7ef79ac3
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc) broken="error[E0425]: cannot find function get_interp_head_offset in module pyruntime";;
 esac
 
-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
 }