31 lines
998 B
Bash
31 lines
998 B
Bash
# Template file for 'thefuck'
|
|
pkgname=thefuck
|
|
version=3.32
|
|
revision=1
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-colorama python3-decorator python3-psutil python3-pyte
|
|
python3-requests"
|
|
checkdepends="python3-pytest-mock $depends"
|
|
short_desc="Magnificent app which corrects your previous console command"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/nvbn/thefuck"
|
|
distfiles="https://github.com/nvbn/thefuck/archive/${version}.tar.gz"
|
|
checksum=76cbb014473672d1c384922857f8fbc1f6f7774f74f784149ad88751854ecfdf
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
# archs where go is available - the test suite uses it
|
|
x86_64*|i686*|armv[67]*|aarch64*|ppc64le*) checkdepends+=" go" ;;
|
|
*) make_check=no ;; # go is not available
|
|
esac
|
|
|
|
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
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.md
|
|
}
|