blob: 8efc99b1623b95d07ad51bd3b28d0be1fc477281 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..9} )
inherit distutils-r1
if [[ "${PV}" == 9999 ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/getpatchwork/git-pw.git"
else
SRC_URI="https://github.com/getpatchwork/git-pw/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
DESCRIPTION="A tool for integrating Git with Patchwork"
HOMEPAGE="https://github.com/getpatchwork/git-pw"
LICENSE="MIT"
SLOT="0"
IUSE=""
RDEPEND="
>=dev-python/arrow-0.10[${PYTHON_USEDEP}]
<dev-python/click-8.0[${PYTHON_USEDEP}]
dev-python/pbr[${PYTHON_USEDEP}]
<dev-python/requests-3.0[${PYTHON_USEDEP}]
>=dev-python/tabulate-0.8[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/pbr[${PYTHON_USEDEP}]
test? (
>=dev-python/mock-3.0.0[${PYTHON_USEDEP}]
<dev-python/pytest-6.0[${PYTHON_USEDEP}]
>=dev-python/pytest-cov-2.5[${PYTHON_USEDEP}]
)
"
PATCHES=( "${FILESDIR}/${P}-version.patch" )
distutils_enable_tests pytest
|