commit: ee05812918b1109f11d17ca3755c112cce63e9cb Author: Henri Gasc <gasc <AT> eurecom <DOT> fr> AuthorDate: Wed Jan 18 10:22:19 2023 +0000 Commit: Henri Gasc <gasc <AT> eurecom <DOT> fr> CommitDate: Wed Jan 18 10:43:10 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ee058129
dev-python/tempy: new package, add 9999 Signed-off-by: Henri Gasc <gasc <AT> eurecom.fr> dev-python/tempy/Manifest | 1 + dev-python/tempy/files/assets.patch | 15 +++++++++++++++ dev-python/tempy/metadata.xml | 11 +++++++++++ dev-python/tempy/tempy-9999.ebuild | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 63 insertions(+) diff --git a/dev-python/tempy/Manifest b/dev-python/tempy/Manifest new file mode 100644 index 000000000..e25e0d9ec --- /dev/null +++ b/dev-python/tempy/Manifest @@ -0,0 +1 @@ +DIST tempy-9999.zip 1553322 BLAKE2B 777b0a3248fc5ed50f8f3ac1d9e7ad9c05106b276352f4c1473ce48e83e0cbab77e4889742165d54df7f7fe44b023629455ed749811828d29380c294df333284 SHA512 23aa2ceb008799120ea1734041b0e73ad5f5ebf5a89cff7fdd8d63d4346d2aad2134637a1b5febf2987cadd82ffe3fd1c6c6709696dd500c9ca8d27ba61426a7 diff --git a/dev-python/tempy/files/assets.patch b/dev-python/tempy/files/assets.patch new file mode 100644 index 000000000..42a65328f --- /dev/null +++ b/dev-python/tempy/files/assets.patch @@ -0,0 +1,15 @@ +diff --git a/setup.py b/setup.py +index 8911137..89122c4 100644 +--- a/setup.py ++++ b/setup.py +@@ -23,9 +23,7 @@ setup( + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + ], +- packages=["tempy"], +- package_data={"": ["assets/*.txt"]}, +- include_package_data=True, ++ packages=["tempy", "tempy.assets"], + install_requires=["requests", "rich"], + entry_points={"console_scripts": ["tempy=tempy.__main__:main"]}, + python_requires=">=3.6", diff --git a/dev-python/tempy/metadata.xml b/dev-python/tempy/metadata.xml new file mode 100644 index 000000000..9793a2282 --- /dev/null +++ b/dev-python/tempy/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'> +<pkgmetadata> + <maintainer type="person"> + <email>g...@eurecom.fr</email> + <name>Gasc Henri</name> + </maintainer> + <upstream> + <remote-id type="github">noprobelm/tempy</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/tempy/tempy-9999.ebuild b/dev-python/tempy/tempy-9999.ebuild new file mode 100644 index 000000000..ab048545e --- /dev/null +++ b/dev-python/tempy/tempy-9999.ebuild @@ -0,0 +1,36 @@ +# 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_{9..11} ) + +inherit distutils-r1 + +DESCRIPTION="A simple, visually pleasing weather report in your terminal" +HOMEPAGE="https://github.com/noprobelm/tempy" +SRC_URI="https://github.com/noprobelm/tempy/archive/refs/heads/main.zip -> ${P}.zip" +S="${WORKDIR}/tempy-main" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + dev-python/rich[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}]" +BDEPEND="" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/assets.patch" +) + +distutils_enable_tests pytest + +pkg_postinst() { + elog By default, tempy is using the API key of the developper by making requests trhought their proxy server. + elog If you do no want this to be the case, you can register your own API key at https://www.weatherapi.com, and store it in '$HOME/.config/tempyrc'. +}