dev-python/pymetar - 1.4 (gentoo)

Search

Install

Install this version:

emerge -a =dev-python/pymetar-1.4

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/pymetar-1.4

Or alternatively:

emerge --autounmask-write -a =dev-python/pymetar-1.4

Package Information

Description:
Downloads and decodes to the weather report for a given station ID
Homepage:
https://www.schwarzvogel.de/software/pymetar/ https://github.com/klausman/pymetar/ https://pypi.org/project/pymetar/
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
1.4 8 ~alpha ~amd64 ~arm ~x86 0
View Raw Ebuild
# Copyright 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..15} )

inherit distutils-r1

DESCRIPTION="Downloads and decodes to the weather report for a given station ID"
HOMEPAGE="
	https://www.schwarzvogel.de/software/pymetar/
	https://github.com/klausman/pymetar/
	https://pypi.org/project/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
}

Inherited Eclasses

Manifest for 1.4

Type File Size Source URLs
DIST pymetar-1.4.tar.gz 3162928 bytes https://www.schwarzvogel.de/pkgs/pymetar-1.4.tar.gz