1 # Copyright 2019-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
9 DESCRIPTION="Parse and manipulate version numbers"
10 HOMEPAGE="https://github.com/RazerM/parver https://pypi.org/project/parver/"
11 SRC_URI="https://github.com/RazerM/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
18 >=dev-python/arpeggio-1.7[${PYTHON_USEDEP}]
19 dev-python/attrs[${PYTHON_USEDEP}]
20 dev-python/six[${PYTHON_USEDEP}]
26 dev-python/hypothesis[${PYTHON_USEDEP}]
27 dev-python/pretend[${PYTHON_USEDEP}]
30 distutils_enable_tests pytest
33 # https://github.com/RazerM/parver/pull/6
34 "${FILESDIR}"/${P}-test.patch
39 sed -i -e 's:~=:>=:g' setup.py || die
41 distutils-r1_src_prepare