thefuck: fix checkdepends.
- go isn't available in all archs and would have broken builds with tests enabled, so disable tests in that case. someone with more interest in the package can disable specific tests if they want - use $depends instead of repeating the dependency list
This commit is contained in:
parent
5167c88685
commit
35c2f3e407
1 changed files with 7 additions and 2 deletions
|
@ -6,8 +6,7 @@ build_style=python3-module
|
||||||
hostmakedepends="python3-setuptools"
|
hostmakedepends="python3-setuptools"
|
||||||
depends="python3-colorama python3-decorator python3-psutil python3-pyte
|
depends="python3-colorama python3-decorator python3-psutil python3-pyte
|
||||||
python3-requests"
|
python3-requests"
|
||||||
checkdepends="python3-colorama python3-decorator python3-psutil python3-pyte
|
checkdepends="python3-pytest-mock $depends"
|
||||||
python3-pytest-mock python3-requests go"
|
|
||||||
short_desc="Magnificent app which corrects your previous console command"
|
short_desc="Magnificent app which corrects your previous console command"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
|
@ -15,6 +14,12 @@ homepage="https://github.com/nvbn/thefuck"
|
||||||
distfiles="https://github.com/nvbn/thefuck/archive/${version}.tar.gz"
|
distfiles="https://github.com/nvbn/thefuck/archive/${version}.tar.gz"
|
||||||
checksum=dd2e7bc94e9453beabbafc10c4d62c67601ea705250103a67ababcdad2991dd3
|
checksum=dd2e7bc94e9453beabbafc10c4d62c67601ea705250103a67ababcdad2991dd3
|
||||||
|
|
||||||
|
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 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
do_check() {
|
do_check() {
|
||||||
# on python3 mock is unittest.mock
|
# 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue