1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
8 inherit python-single-r1
10 DESCRIPTION="Future-aware personal finances management"
11 HOMEPAGE="https://hardcoded.net/moneyguru"
12 SRC_URI="https://download.hardcoded.net/${P}.tar.gz"
18 RESTRICT="!test? ( test )"
19 REQUIRED_USE=${PYTHON_REQUIRED_USE}
21 RDEPEND="${PYTHON_DEPS}
24 dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets,printsupport]
25 dev-qt/qttranslations"
28 <dev-python/pytest-4[${PYTHON_USEDEP}]
33 emake CFLAGS="\$(DEFAULT_CFLAGS) ${CFLAGS}" \
49 emake -C ccore CFLAGS="\$(DEFAULT_CFLAGS) ${CFLAGS}" tests
50 pytest -vv core || die "Tests failed with ${EPYTHON}"