# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{10..11} ) DISTUTILS_USE_SETUPTOOLS=no inherit distutils-r1 SRC_PV="1.8" DESCRIPTION="A parser that builds a CQL parsetree and can convert this into other formats." HOMEPAGE="https://github.com/seecr/cqlparser" SRC_URI="https://github.com/seecr/cqlparser/archive/${SRC_PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" RESTRICT="mirror" DEPEND="" RDEPEND="${DEPEND}" S="${WORKDIR}/cqlparser-${SRC_PV}" src_prepare() { default cp "${FILESDIR}/customtest.py" test/. } python_test() { # customized tests, some others require seecr-test deps "${PYTHON}" test/customtest.py || die "Test failed with ${EPYTHON}" }