# Copyright 2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{8..11} ) inherit distutils-r1 DESCRIPTION="Singer.io utility library" HOMEPAGE="https://www.singer.io" SRC_URI="https://github.com/singer-io/singer-python/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" RDEPEND=" >=dev-python/pytz-2018.4[${PYTHON_USEDEP}] >=dev-python/jsonschema-2.6.0[${PYTHON_USEDEP}] >=dev-python/simplejson-3.11.1[${PYTHON_USEDEP}] >=dev-python/python-dateutil-2.6.0[${PYTHON_USEDEP}] >=dev-python/backoff-1.8.0[${PYTHON_USEDEP}] dev-python/ciso8601[${PYTHON_USEDEP}] " BDEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] test? ( dev-python/pytest[${PYTHON_USEDEP}] ) " distutils_enable_tests pytest src_prepare() { distutils-r1_src_prepare sed -e "s/find_packages()/find_packages(exclude=['tests'])/" -i setup.py || die }