void-packages/srcpkgs/thefuck/template
2019-03-01 12:04:45 -03:00

31 lines
947 B
Bash

# Template file for 'thefuck'
pkgname=thefuck
version=3.28
revision=1
archs=noarch
build_style=python3-module
pycompile_module="thefuck"
hostmakedepends="python3-setuptools"
depends="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=b5c83e380e4af90d49ab01a55a326e608875bedb981bc7dae9b6a4b72cc521c4
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
}