From b877656677fb9b46ffea40b7188852abce25a4759dd4c9b20c093bee4682daf9 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 15 Feb 2024 12:53:30 +0000 Subject: [PATCH] Accepting request 1146757 from home:avicenzi:protonvpn Add python-proton-vpn-session for Proton VPN OBS-URL: https://build.opensuse.org/request/show/1146757 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proton-vpn-session?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + python-proton-vpn-session.changes | 4 ++ python-proton-vpn-session.spec | 73 +++++++++++++++++++++++++++++++ v0.6.5.tar.gz | 3 ++ 5 files changed, 104 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-proton-vpn-session.changes create mode 100644 python-proton-vpn-session.spec create mode 100644 v0.6.5.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-proton-vpn-session.changes b/python-proton-vpn-session.changes new file mode 100644 index 0000000..6cb8c9c --- /dev/null +++ b/python-proton-vpn-session.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Feb 9 10:19:06 UTC 2024 - Alexandre Vicenzi + +- Initial revision diff --git a/python-proton-vpn-session.spec b/python-proton-vpn-session.spec new file mode 100644 index 0000000..d8d4c73 --- /dev/null +++ b/python-proton-vpn-session.spec @@ -0,0 +1,73 @@ +# +# spec file for package python-proton-vpn-session +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define skip_python2 1 +Name: python-proton-vpn-session +Version: 0.6.5 +Release: 0 +Summary: Proton VPN session library +License: GPL-3.0-or-later +Group: Development/Languages/Python +URL: https://github.com/ProtonVPN/python-proton-vpn-session +Source: https://github.com/ProtonVPN/python-proton-vpn-session/archive/refs/tags/v%{version}.tar.gz +BuildRequires: %{python_module PyNaCl} +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module cryptography} +BuildRequires: %{python_module distro} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module proton-core} +BuildRequires: %{python_module proton-vpn-logger} +BuildRequires: %{python_module pytest-asyncio} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +Requires: python-PyNaCl +Requires: python-base >= 3.8 +Requires: python-cryptography +Requires: python-distro +Requires: python-proton-core +Requires: python-proton-vpn-logger +BuildArch: noarch +%python_subpackages + +%description +This package contains utility classes to manage VPN sessions for Proton VPN client. + +%prep +%autosetup -p1 -n python-proton-vpn-session-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest tests + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/proton +%{python_sitelib}/proton_vpn_session-%{version}*-info + +%changelog diff --git a/v0.6.5.tar.gz b/v0.6.5.tar.gz new file mode 100644 index 0000000..b208b98 --- /dev/null +++ b/v0.6.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55aa10168d15187c9e34652d7231d7af4d447cd7120e263f0f9814ed3670a597 +size 48959