diff options
author | Maciej Barć <xgqt@gentoo.org> | 2022-07-02 16:01:56 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2022-07-02 16:05:36 +0200 |
commit | 383c3a48522e0503c2e45a7e3e78aa96c25602bc (patch) | |
tree | cfa8db8692e7ef8d7fce1d77ff1530fe8bb9d6fc /dev-python/pyjsparser | |
parent | dev-python/click-default-group: Stabilize 1.2.2-r1 ppc, #855848 (diff) | |
download | gentoo-383c3a48522e0503c2e45a7e3e78aa96c25602bc.tar.gz gentoo-383c3a48522e0503c2e45a7e3e78aa96c25602bc.tar.bz2 gentoo-383c3a48522e0503c2e45a7e3e78aa96c25602bc.zip |
dev-python/pyjsparser: add missing PYTHON_USEDEP for tests
bump to EAPI 8; minor style tweaks
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-python/pyjsparser')
-rw-r--r-- | dev-python/pyjsparser/pyjsparser-2.7.1_p20190421-r1.ebuild (renamed from dev-python/pyjsparser/pyjsparser-2.7.1_p20190421.ebuild) | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/dev-python/pyjsparser/pyjsparser-2.7.1_p20190421.ebuild b/dev-python/pyjsparser/pyjsparser-2.7.1_p20190421-r1.ebuild index 9318b52029a1..8b2a6183601a 100644 --- a/dev-python/pyjsparser/pyjsparser-2.7.1_p20190421.ebuild +++ b/dev-python/pyjsparser/pyjsparser-2.7.1_p20190421-r1.ebuild @@ -1,20 +1,18 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 - -MY_COMMIT="5465d037b30e334cb0997f2315ec1e451b8ad4c1" +EAPI=8 +H=5465d037b30e334cb0997f2315ec1e451b8ad4c1 PYTHON_COMPAT=( python3_{8..10} ) inherit distutils-r1 DESCRIPTION="Fast javascript parser based on esprima.js" -HOMEPAGE=" - https://github.com/PiotrDabkowski/pyjsparser/ - https://pypi.org/project/pyjsparser/ -" -SRC_URI="https://github.com/PiotrDabkowski/${PN}/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" +HOMEPAGE="https://github.com/PiotrDabkowski/pyjsparser/ + https://pypi.org/project/pyjsparser/" +SRC_URI="https://github.com/PiotrDabkowski/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${PN}-${H} RESTRICT="!test? ( test )" LICENSE="MIT" @@ -24,13 +22,11 @@ IUSE="test" BDEPEND=" test? ( - dev-python/js2py - dev-python/pytest + dev-python/js2py[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] ) " -S="${WORKDIR}/${PN}-${MY_COMMIT}" - python_test() { "${EPYTHON}" ./test_runner.py || die "tests failed with ${EPYTHON}" } |