void-packages/srcpkgs/thefuck/template
maxice8 6600409599 thefuck: update to 3.25.
Closes: #9487 [via git-merge-pr]
2017-11-24 16:22:13 -05:00

29 lines
921 B
Bash

# Template file for 'thefuck'
pkgname=thefuck
version=3.25
revision=1
build_style=python3-module
pycompile_module="thefuck"
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 <hoffmeyer25@gmail.com>'
license="MIT"
homepage="https://github.com/nvbn/thefuck"
distfiles="https://github.com/nvbn/thefuck/archive/${version}.tar.gz"
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
}