Files
gentoo/dev-python/pyjsparser/pyjsparser-2.7.1_p20190421-r1.ebuild
Maciej Barć 383c3a4852 dev-python/pyjsparser: add missing PYTHON_USEDEP for tests
bump to EAPI 8; minor style tweaks

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
2022-07-02 16:05:36 +02:00

33 lines
802 B
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
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/${H}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}"/${PN}-${H}
RESTRICT="!test? ( test )"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc x86"
IUSE="test"
BDEPEND="
test? (
dev-python/js2py[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)
"
python_test() {
"${EPYTHON}" ./test_runner.py || die "tests failed with ${EPYTHON}"
}