commit 8524e851e65312d6b3ac18855e78ce9bdc10dfb6dfac9777ddd451e0da49e19e Author: Markéta Machová Date: Fri Jul 30 10:56:54 2021 +0000 Accepting request 907981 from home:avicenzi Add python-proton-client OBS-URL: https://build.opensuse.org/request/show/907981 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proton-client?expand=0&rev=1 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/_service b/_service new file mode 100644 index 0000000..05d0245 --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + https://github.com/ProtonMail/proton-python-client + git + .git + 0.5.1 + @PARENT_TAG@ + enable + (.*) + + + + + *.tar + gz + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..c40c1f7 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/ProtonMail/proton-python-client + 0ca13cd3b45b748cf12be8be15aa38f0d21d5a64 \ No newline at end of file diff --git a/proton-python-client-0.5.1.tar.gz b/proton-python-client-0.5.1.tar.gz new file mode 100644 index 0000000..efdb1fd --- /dev/null +++ b/proton-python-client-0.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be755fb3b32b8448193de5ddbc44838926de79e6deccca7c30d140d6cdb1319a +size 52383 diff --git a/python-proton-client.changes b/python-proton-client.changes new file mode 100644 index 0000000..1337d3b --- /dev/null +++ b/python-proton-client.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Jul 23 11:33:07 UTC 2021 - Alexandre Vicenzi + +- Initial revision + diff --git a/python-proton-client.spec b/python-proton-client.spec new file mode 100644 index 0000000..07061a4 --- /dev/null +++ b/python-proton-client.spec @@ -0,0 +1,69 @@ +# +# spec file for package python3-proton-client +# +# Copyright (c) 2021 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/ +# + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 + +Name: python-proton-client +Version: 0.5.1 +Release: 0 +Summary: Safely login with ProtonVPN credentials to connect to Proton +Group: Development/Languages/Python +License: GPL-3.0-or-later +Url: https://github.com/ProtonMail/proton-python-client +Source: proton-python-client-%{version}.tar.gz +BuildArch: noarch +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module requests} +BuildRequires: pkgconfig(libopenssl) +BuildRequires: %{python_module bcrypt} +BuildRequires: %{python_module gnupg} +BuildRequires: %{python_module pytest} +Requires: python3 >= 3.6 +Requires: python3-requests +Requires: python3-pyOpenSSL +Requires: python3-bcrypt +Requires: python3-gnupg +%python_subpackages + +%description +This package, originally forked from python-srp module implements a simple +wrapper to Proton Technologies API, abstracting from the SRP authentication. + +%prep +%setup -q -n proton-python-client-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib}/proton + +%check +# skip test_tlspinning.py as OBS has no network access +%python_exec -m pytest -v tests --ignore=tests/test_tlspinning.py + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/proton +%{python_sitelib}/proton_client-*-py*.*-info + +%changelog