Files
gentoo/dev-python/pyjsparser/pyjsparser-2.7.1_p20190421.ebuild
T
Sergei Trofimovich c88d57abea dev-python/pyjsparser: keyworded 2.7.1_p20190421 for ppc64
keyworded wrt bug #798663

Package-Manager: Portage-3.0.20, Repoman-3.0.3
RepoMan-Options: --include-arches="ppc64"
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2021-07-08 08:10:47 +01:00

37 lines
762 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_COMMIT="5465d037b30e334cb0997f2315ec1e451b8ad4c1"
PYTHON_COMPAT=( python3_{8,9} )
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"
RESTRICT="!test? ( test )"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
IUSE="test"
BDEPEND="
test? (
dev-python/js2py
dev-python/pytest
)
"
S="${WORKDIR}/${PN}-${MY_COMMIT}"
python_test() {
"${EPYTHON}" ./test_runner.py || die "tests failed with ${EPYTHON}"
}