void-packages/srcpkgs/thefuck/template
cr6git cee5ac4c64 thefuck: update to 3.27.
Closes #14658.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-05-26 15:26:31 +02:00

30 lines
964 B
Bash

# Template file for 'thefuck'
pkgname=thefuck
version=3.27
revision=1
noarch=yes
build_style=python3-module
pycompile_module="thefuck"
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-colorama python3-decorator python3-psutil
python3-pyte python3-requests"
checkdepends="python3-colorama python3-decorator python3-psutil python3-pyte
python3-pytest-mock python3-requests"
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=26ed781fd84d5992c52a1ae7b0ca5ed12c88d37cf8508c32070e74d48515c357
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
}