diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-26 19:15:12 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-26 19:15:12 +0000 |
commit | b3e456d42287ef73c7ff48148d18a9ea8fb8debf (patch) | |
tree | 1c9ad46437b76c8af060cd54ff3ceb0f8678b6ce /dev-python/python-ctags/python-ctags-1.5.0-r1.ebuild | |
parent | 7de40ae3e1ba40671bc9aac9ebbf3f42952a036b (diff) |
gentoo auto-resync : 26:11:2022 - 19:15:12
Diffstat (limited to 'dev-python/python-ctags/python-ctags-1.5.0-r1.ebuild')
-rw-r--r-- | dev-python/python-ctags/python-ctags-1.5.0-r1.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/python-ctags/python-ctags-1.5.0-r1.ebuild b/dev-python/python-ctags/python-ctags-1.5.0-r1.ebuild new file mode 100644 index 000000000000..12154624c3b7 --- /dev/null +++ b/dev-python/python-ctags/python-ctags-1.5.0-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{9..11} ) + +inherit distutils-r1 + +MY_PN="${PN}3" +DESCRIPTION="Exuberant Ctags indexing python bindings" +HOMEPAGE="https://github.com/universal-ctags/python-ctags3" +# PyPI tarballs don't contain pyx files +SRC_URI="https://github.com/universal-ctags/python-ctags3/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}/${MY_PN}-${PV}" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-util/ctags:=" +BDEPEND="dev-python/cython[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +python_prepare_all() { + # We currently need to let Cython regenerate this file to make Python 3.11 + # support work + rm src/_readtags.c || die + cython -3 src/_readtags.pyx || die + distutils-r1_python_prepare_all +} + +python_test() { + # To prevent pytest from importing it and failing with: + # ModuleNotFoundError: No module named 'ctags._readtags' + rm -rf src/ctags || die + epytest +} |