commit: 70c161a1653f42e1d3e0e2e70689b1ebe78190f2 Author: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail <DOT> com> AuthorDate: Fri Apr 25 09:31:27 2025 +0000 Commit: David Roman <davidroman96 <AT> gmail <DOT> com> CommitDate: Fri Apr 25 09:33:40 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=70c161a1
dev-python/proton-vpn-api-core: new package, add 0.42.4 Signed-off-by: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail.com> dev-python/proton-vpn-api-core/Manifest | 1 + dev-python/proton-vpn-api-core/metadata.xml | 21 +++++++++++ .../proton-vpn-api-core-0.42.4.ebuild | 42 ++++++++++++++++++++++ 3 files changed, 64 insertions(+) diff --git a/dev-python/proton-vpn-api-core/Manifest b/dev-python/proton-vpn-api-core/Manifest new file mode 100644 index 000000000..c168f2f14 --- /dev/null +++ b/dev-python/proton-vpn-api-core/Manifest @@ -0,0 +1 @@ +DIST proton-vpn-api-core-0.42.4.tar.gz 107830 BLAKE2B 6db40531de7c7128f9f7b9de3e405b18adcf68dbae604ad86df336c43eaf204842f64c7d0b2adecd4b0ee8b1aadac49125544d6f7413cd28b6a5631944f266ed SHA512 06106116e1c114d1a7115fcb3246fdb13eb545ec938224d6fb3f268300589ce324116590ee63237078898e1b5a34b5038512586dd040f38ea7c38f3ff13db423 diff --git a/dev-python/proton-vpn-api-core/metadata.xml b/dev-python/proton-vpn-api-core/metadata.xml new file mode 100644 index 000000000..c768f9409 --- /dev/null +++ b/dev-python/proton-vpn-api-core/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Mattéo Rossillol‑‑Laruelle</name> + </maintainer> + + <stabilize-allarches/> + + <upstream> + <maintainer status="active"> + <name>Proton AG</name> + <email>[email protected]</email> + </maintainer> + + <bugs-to>https://github.com/ProtonVPN/python-proton-vpn-api-core/issues</bugs-to> + <remote-id type="github">ProtonVPN/python-proton-vpn-api-core</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/proton-vpn-api-core/proton-vpn-api-core-0.42.4.ebuild b/dev-python/proton-vpn-api-core/proton-vpn-api-core-0.42.4.ebuild new file mode 100644 index 000000000..4a4b83c54 --- /dev/null +++ b/dev-python/proton-vpn-api-core/proton-vpn-api-core-0.42.4.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} ) + +inherit distutils-r1 + +DESCRIPTION="Proton AG VPN Core API" +HOMEPAGE="https://github.com/ProtonVPN/python-proton-vpn-api-core" +SRC_URI="https://github.com/ProtonVPN/python-proton-vpn-api-core/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/python-${P}" +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( dev-python/pytest-asyncio[${PYTHON_USEDEP}] )" + +RDEPEND=" + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/distro[${PYTHON_USEDEP}] + dev-python/proton-core[${PYTHON_USEDEP}] + dev-python/pynacl[${PYTHON_USEDEP}] + dev-python/sentry-sdk[${PYTHON_USEDEP}] +" + +distutils_enable_sphinx docs +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + + sed -i "/--cov/d" setup.cfg || die +} + +python_test() { + XDG_RUNTIME_DIR="${T}/python_test" epytest +}
