guru/dev-python/fake-useragent/fake-useragent-1.1.2.ebuild
Anna (cybertailor) Vyalkova 12088906c5
*/*: drop dead py3.9 impl
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2023-05-02 00:45:35 +05:00

37 lines
810 B
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="Up to date simple useragent faker with real world database"
HOMEPAGE="
https://github.com/fake-useragent/fake-useragent
https://pypi.org/project/fake-useragent/
"
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
$(python_gen_cond_dep \
'dev-python/importlib-resources[${PYTHON_USEDEP}]' python3_9
)
"
distutils_enable_tests pytest
distutils_enable_sphinx docs --no-autodoc
python_prepare_all() {
# do not depend on pytest-cov
rm pytest.ini || die
distutils-r1_python_prepare_all
}