commit:     cdfde49eb9037d99cdaedf59c833ea6bfa92ac00
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Thu Oct  6 09:43:00 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu Oct  6 09:44:10 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdfde49e

dev-python/pymetar: update EAPI 7 -> 8, pep517, add tests, enable py3_{10,11}

Closes: https://bugs.gentoo.org/845813
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 dev-python/pymetar/pymetar-1.4-r2.ebuild | 37 ++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/dev-python/pymetar/pymetar-1.4-r2.ebuild 
b/dev-python/pymetar/pymetar-1.4-r2.ebuild
new file mode 100644
index 000000000000..792ffb9c8b52
--- /dev/null
+++ b/dev-python/pymetar/pymetar-1.4-r2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2021-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..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
+}

Reply via email to