2019-04-11 08:04:25 +00:00
#
# spec file for package python-python3-saml
#
2025-03-22 17:45:44 +00:00
# Copyright (c) 2025 SUSE LLC
2019-04-11 08:04:25 +00:00
#
# 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.
2019-04-11 08:13:51 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2019-04-11 08:04:25 +00:00
#
2023-11-02 09:05:44 +00:00
%{?sle15_python_module_pythons}
2019-04-11 08:04:25 +00:00
Name : python-python3-saml
2025-03-22 17:45:44 +00:00
Version : 1.16.0
2019-04-11 08:04:25 +00:00
Release : 0
Summary : Python SAML support
License : MIT
Group : Development/Languages/Python
2025-03-22 17:47:55 +00:00
URL : https://github.com/SAML-Toolkits/python3-saml
Source : https://github.com/SAML-Toolkits/python3-saml/archive/v%{version} .tar.gz#/python3-saml-%{version}.tar.gz
2019-04-11 08:13:51 +00:00
BuildRequires : %{python_module freezegun >= 0.3.11}
2022-05-23 08:02:43 +00:00
BuildRequires : %{python_module isodate >= 0.6.1}
2021-07-08 15:27:30 +00:00
BuildRequires : %{python_module lxml >= 3.3.5}
BuildRequires : %{python_module pytest}
2019-04-11 08:04:25 +00:00
BuildRequires : %{python_module setuptools}
2022-05-23 08:02:43 +00:00
BuildRequires : %{python_module xmlsec >= 1.3.9}
2019-04-11 08:04:25 +00:00
BuildRequires : fdupes
BuildRequires : libxmlsec1-openssl1
BuildRequires : python-rpm-macros
# Select the libxmlsec backend known to work
# pkgconfig doesnt auto-require it.
Requires : libxmlsec1-openssl1
2022-05-23 08:02:43 +00:00
Requires : python-isodate >= 0.6.1
2023-05-14 20:40:59 +00:00
Requires : python-lxml
2022-05-23 08:02:43 +00:00
Requires : python-xmlsec >= 1.3.9
2019-04-11 08:04:25 +00:00
BuildArch : noarch
%python_subpackages
%description
Python SAML support for your Python 2 or 3 software.
SAML is an XML-based standard for web browser single sign-on and is
defined by the OASIS Security Services Technical Committee.
%prep
2021-07-08 15:27:30 +00:00
%autosetup -p1 -n python3-saml-%{version}
2019-04-11 08:04:25 +00:00
sed -i 's/==/>=/;/dependency_links/d' setup.py
%build
%python_build
%install
%python_install
2025-03-22 17:47:55 +00:00
%python_expand %fdupes %{buildroot} %{$python_sitelib}/SAML-Toolkits
2019-04-11 08:04:25 +00:00
%check
2025-03-22 17:47:55 +00:00
# gh#SAML-Toolkits/python3-saml#271
# the test suite is a complete disaster currently gh#SAML-Toolkits/python3-saml#272
2021-07-16 09:32:21 +00:00
%pytest -k 'not (testIsInValidAudience or testIsInValidEncAttrs or testIsInValidIssuer or testIsInValidSessionIndex or testIsInValidSubjectConfirmation)' || /bin/true
2019-04-11 08:04:25 +00:00
%files %{python_files}
%license LICENSE
%doc README.md
2025-03-22 17:47:55 +00:00
%dir %{python_sitelib} /SAML-Toolkits
%{python_sitelib} /SAML-Toolkits/saml2
%{python_sitelib} /SAML-Toolkits/__init__.py
%pycache_only %{python_sitelib} /SAML-Toolkits/__pycache__/
2022-12-30 13:03:47 +00:00
%{python_sitelib} /python3_saml-%{version} *-info
2019-04-11 08:04:25 +00:00
%changelog