forked from pool/python-proton-client
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
This commit is contained in:
69
python-proton-client.spec
Normal file
69
python-proton-client.spec
Normal file
@@ -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
|
Reference in New Issue
Block a user