2
0
mirror of https://github.com/gentoo-mirror/gentoo.git synced 2026-02-15 00:10:55 +03:00
Files
gentoo/dev-python/phply/phply-1.2.6.ebuild
Michał Górny e3e7321154 dev-python/phply: Enable py3.13
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2024-05-18 08:46:07 +02:00

35 lines
808 B
Bash

# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1
DESCRIPTION="Lexer and parser for PHP source implemented using PLY"
HOMEPAGE="
https://github.com/viraptor/phply/
https://pypi.org/project/phply/"
SRC_URI="
https://github.com/viraptor/phply/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm64 x86"
RDEPEND="dev-python/ply[${PYTHON_USEDEP}]"
BDEPEND="${RDEPEND}"
distutils_enable_tests pytest
src_prepare() {
# namespace? seriously?
sed -i -e '/namespace_packages/d' setup.py || die
# prevent installing tests, turn phply back into normal package
mv tests/__init__.py phply/ || die
distutils-r1_src_prepare
}