summaryrefslogtreecommitdiff
blob: 7992f3b024a2c2b98af818bfaddbc69568d74b1c (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
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1

DESCRIPTION="A gpodder.net client library"
HOMEPAGE="https://github.com/gpodder/mygpoclient
	https://mygpoclient.readthedocs.io/en/latest/"
SRC_URI="https://github.com/gpodder/mygpoclient/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"

BDEPEND="test? ( dev-python/minimock[${PYTHON_USEDEP}] )"

PATCHES=(
	"${FILESDIR}"/${P}-fix-literal.patch
	"${FILESDIR}"/${PN}-1.8-tests.patch
)

distutils_enable_tests nose

src_prepare() {
	# Disable tests requring network connection.
	rm mygpoclient/http_test.py || die

	distutils-r1_src_prepare
}

src_install() {
	distutils-r1_src_install
	find "${D}" -name "*_test.py" -delete || die
}