diff --git a/srcpkgs/thefuck/template b/srcpkgs/thefuck/template index 29704030c8d..3558008383b 100644 --- a/srcpkgs/thefuck/template +++ b/srcpkgs/thefuck/template @@ -1,7 +1,7 @@ # Template file for 'thefuck' pkgname=thefuck -version=3.30 -revision=4 +version=3.31 +revision=1 build_style=python3-module hostmakedepends="python3-setuptools" depends="python3-colorama python3-decorator python3-psutil python3-pyte @@ -12,7 +12,7 @@ maintainer="Orphaned " license="MIT" homepage="https://github.com/nvbn/thefuck" distfiles="https://github.com/nvbn/thefuck/archive/${version}.tar.gz" -checksum=dd2e7bc94e9453beabbafc10c4d62c67601ea705250103a67ababcdad2991dd3 +checksum=ac12705b95e22b356f23b20181a34d549267b7b1702523a1f0a22ba7ba3d30df case "$XBPS_TARGET_MACHINE" in # archs where go is available - the test suite uses it @@ -20,12 +20,10 @@ case "$XBPS_TARGET_MACHINE" in *) make_check=no ;; esac -do_check() { +pre_check() { # on python3 mock is unittest.mock sed -i 's|from mock|from unittest.mock|g' tests/**.py sed -i 's|from mock|from unittest.mock|g' tests/**/*.py - - python3 -m pytest } post_install() {