blob: 489a3cef532ec631be185ecabaaece540ae67f44 (
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 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1
DESCRIPTION="Downloads and decodes to the weather report for a given station ID"
HOMEPAGE="https://www.schwarzvogel.de/software/pymetar/"
SRC_URI="https://www.schwarzvogel.de/pkgs/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~x86"
src_test() {
pushd testing/smoketest || die
tar xzf reports.tgz || die
distutils-r1_src_test
popd || die
}
python_test() {
# A failed tests does not necessarily cause a failure exit code
# Check output manually, each test should show "reports check out ok"
./runtests.sh || die "Tests failed with ${EPYTHON}"
}
src_install() {
dodoc "${S}/README.md" "${S}/THANKS"
doman "${S}/pymetar.1"
distutils-r1_src_install
}
|