summaryrefslogtreecommitdiff
path: root/dev-python/pymetar
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-06 13:21:55 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-06 13:21:55 +0100
commit275074c50dca7b941cc7cd7966a2ace71c29ecae (patch)
treee22b9ca529098f2d687b61bc9b0eb711b0990cc3 /dev-python/pymetar
parent86b151cdc26e1566efef728aac4ebb2aabce776a (diff)
gentoo auto-resync : 06:10:2022 - 13:21:55
Diffstat (limited to 'dev-python/pymetar')
-rw-r--r--dev-python/pymetar/Manifest1
-rw-r--r--dev-python/pymetar/pymetar-1.4-r2.ebuild37
2 files changed, 38 insertions, 0 deletions
diff --git a/dev-python/pymetar/Manifest b/dev-python/pymetar/Manifest
index 473a7ec2a075..ffd3c0327c85 100644
--- a/dev-python/pymetar/Manifest
+++ b/dev-python/pymetar/Manifest
@@ -1,3 +1,4 @@
DIST pymetar-1.4.tar.gz 3162928 BLAKE2B b92686204e84070722b3351ce04c1e65e3b47c7802767fbdb95027bcaea566518e61ac4c3e02dd0345c6672a87e2d50239a679dd7db426f7fa183023357763d3 SHA512 d5c5d382c68ffacefe07d63239f3b56984bf2becef922c945b0014a210ddf9ce1f96f99028e0ec9e649f70f6262925a836dbeb83309407aa2c4ddb4769db3dbd
EBUILD pymetar-1.4-r1.ebuild 566 BLAKE2B d1de4abc0b299422f4b31add1eef9531c9be8207abdde6fe9b6797b1b820699e4e70ab6f7c7d52e194d36ddc4c14ca935b83d3085e79f8de39744919d4cdfcd2 SHA512 4ec737ebe9a39c30ebd18010e75ab278fe571f28c948843c0679061d2f4a083e2696f8e311558ebf2e55d6d2f6acadfc0f6c660003547e8bb472e2c18cbb5af8
+EBUILD pymetar-1.4-r2.ebuild 884 BLAKE2B 985d2a07d627ffdfe5ad7276d7752c5eacda08cd967622e3088385606fa4cb57c5f9d39c5e816b0cad54919425a8ddf1924adfb959896aa4895ade559f733141 SHA512 9fc276461e019223fac3d1d1e8425641a98cde7dcf81dba6281d6d7bc82797b5236fcee22ac8408ce9f7d390fa85f0ef122b7a97e37064adf7e0713a0804f9a2
MISC metadata.xml 1092 BLAKE2B 33e3f517b7f3451e463f2ac4a3bfbf0e6491e4e8990695dfb6dd9c0e9bdd823582822ba5142c2c4e67d7e6fc9a6162cea5b6e22cd62103fa16ccaf146e99763c SHA512 4a658b23fcbe07fb83a67d87c2a99254aa7a5957a53737e6af615aa8bfbc0db2a680d5f8f1cf81ce1c3c93875002fc50cbfa557978570c7ce99026258d9f7603
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
+}