diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-10-06 13:01:27 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-10-06 13:01:27 +0000 |
| commit | 459041bc1751cdd9db372771a72cb90098253944 (patch) | |
| tree | 29dc7cddf314533bc46f572c6bdce63f94af98bf /dev-python/pymetar | |
| parent | 9d3e727585156013d2c4d66528fcea58ccfcad32 (diff) | |
| download | baldeagleos-repo-459041bc1751cdd9db372771a72cb90098253944.tar.gz baldeagleos-repo-459041bc1751cdd9db372771a72cb90098253944.tar.xz baldeagleos-repo-459041bc1751cdd9db372771a72cb90098253944.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pymetar')
| -rw-r--r-- | dev-python/pymetar/pymetar-1.4-r2.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
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..3d424d236661 --- /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_{7,8,9,10} ) + +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 +} |
