diff options
author | Maciej Barć <xgqt@gentoo.org> | 2023-01-16 02:28:14 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2023-01-16 02:57:05 +0100 |
commit | 9ba49c2bebb0f49ba185d518f333ecb9ac012895 (patch) | |
tree | 5e21fa43b068124c3438cb48645ca466b742bf8a /dev-python/pyjsparser/pyjsparser-2.7.1_p20190421-r2.ebuild | |
parent | dev-python/js2py: enable python 3.11 (diff) | |
download | gentoo-9ba49c2bebb0f49ba185d518f333ecb9ac012895.tar.gz gentoo-9ba49c2bebb0f49ba185d518f333ecb9ac012895.tar.bz2 gentoo-9ba49c2bebb0f49ba185d518f333ecb9ac012895.zip |
dev-python/pyjsparser: enable python 3.11
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-python/pyjsparser/pyjsparser-2.7.1_p20190421-r2.ebuild')
-rw-r--r-- | dev-python/pyjsparser/pyjsparser-2.7.1_p20190421-r2.ebuild | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-python/pyjsparser/pyjsparser-2.7.1_p20190421-r2.ebuild b/dev-python/pyjsparser/pyjsparser-2.7.1_p20190421-r2.ebuild new file mode 100644 index 000000000000..47b017d915d6 --- /dev/null +++ b/dev-python/pyjsparser/pyjsparser-2.7.1_p20190421-r2.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +H=5465d037b30e334cb0997f2315ec1e451b8ad4c1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +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}" +} |