diff --git a/srcpkgs/thefuck/template b/srcpkgs/thefuck/template index 2c7cea0496a..4e84c9d3317 100644 --- a/srcpkgs/thefuck/template +++ b/srcpkgs/thefuck/template @@ -1,6 +1,6 @@ # Template file for 'thefuck' pkgname=thefuck -version=3.24 +version=3.25 revision=1 build_style=python3-module pycompile_module="thefuck" @@ -8,12 +8,21 @@ noarch=yes hostmakedepends="python3-setuptools" depends="python3-setuptools python3-requests python3-psutil python3-decorator python3-six python3-colorama python3-pyte" +checkdepends="python3-pytest python3-pytest-mock ${depends}" short_desc="Magnificent app which corrects your previous console command" maintainer='Benjamin "Doctors" Hoffmeyer ' license="MIT" homepage="https://github.com/nvbn/thefuck" distfiles="https://github.com/nvbn/thefuck/archive/${version}.tar.gz" -checksum=686867f264ee34d9287814dde0e9ca5debb322deeaf0ac6773ec06f823d7c0b4 +checksum=73ea219a317f0d2ef4617c483fa41d218d1e30515edabb9aa5d89c11a8b00b21 + +do_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() { vlicense LICENSE.md