File python-zscaler-sdk-python.spec of Package python-zscaler-sdk-python

#
# spec file for package python-zscaler-sdk-python
#
# Copyright (c) 2024-2025, Martin Hauke <mardnh@gmx.de>
#
# 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/
#


Name:           python-zscaler-sdk-python
Version:        1.9.10
Release:        0
Summary:        Python SDK for the Zscaler Products
License:        MIT
URL:            https://zscaler-sdk-python.readthedocs.io/
Source:         https://github.com/zscaler/zscaler-sdk-python/archive/refs/tags/v%{version}.tar.gz#/zscaler-sdk-python-%{version}.tar.gz
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module poetry-core >= 1.0.0}
# SECTION test requirements
#BuildRequires:  %%{python_module pytest}
#BuildRequires:  %%{python_module python-box >= 7.2.0}
#BuildRequires:  %%{python_module okta >= 2.9.7}
#BuildRequires:  %%{python_module python-dateutil}
#BuildRequires:  %%{python_module pytz >= 2024.2}
#BuildRequires:  %%{python_module requests >= 2.32.3}
#BuildRequires:  %%{python_module restfly >= 1.5.0}
# /SECTION
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-PyYAML
Requires:       python-aiohttp
Requires:       python-arrow
Requires:       python-certifi >= 2024.2.2
Requires:       python-charset-normalizer
Requires:       python-cryptography
Requires:       python-flake8
Requires:       python-flatdict
Requires:       python-idna >= 3.10
Requires:       python-okta
Requires:       python-pycryptodomex
Requires:       python-python-box
Requires:       python-python-dateutil
Requires:       python-pytz >= 2024.2
Requires:       python-requests >= 2.32.3
Requires:       python-responses >= 0.25.3
Requires:       python-restfly >= 1.5.0
Requires:       python-six
Requires:       python-xmltodict >= 0.14.2
Requires:       python-yarl >= 1.14.0
BuildArch:      noarch
%python_subpackages

%description
Python SDK for the Zscaler Products.

It can be used to interact with several Zscaler services such as:
 * Zscaler Private Access (ZPA)
 * Zscaler Internet Access (ZIA)
 * Zscaler Mobile Admin Portal
 * Zscaler Cloud Connector Portal (ZCON)
 * Zscaler Digital Experience (ZDX)

%prep
%autosetup -p1 -n zscaler-sdk-python-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check
# Skip tests since all tests require an connection to the Zscaler cloud services.
#%%pytest

%files %{python_files}
%license LICENSE.md
%doc CHANGELOG.md README.md
%{python_sitelib}/zscaler
%{python_sitelib}/zscaler_sdk_python-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by