Name: python-pysaml2
Version: 7.5.4
Release: 1
Summary: Python implementation of SAML Version 2 Standard
License: Apache-2.0
URL: https://github.com/IdentityPython/pysaml2
Source0: https://github.com/IdentityPython/pysaml2/archive/refs/tags/v%{version}.tar.gz
Patch0: use-cryptography.patch
BuildArch: noarch
BuildRequires: python3-sphinx
BuildRequires: python3-defusedxml
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel python3-poetry-core
BuildRequires: python3-poetry-core
Requires: python3-cryptography
Requires: python3-defusedxml
Requires: python3-pyOpenSSL
Requires: python3-dateutil
Requires: python3-pytz
Requires: python3-requests
Requires: python3-six
Requires: python3-importlib-resources
Requires: python3-xmlschema >= 1.2.1
%description
PySAML2 is a pure python implementation of SAML2. It contains all
necessary pieces for building a SAML2 service provider or an identity
provider. The distribution contains examples of both. Originally
written to work in a WSGI environment there are extensions that allow
you to use it with other frameworks.
%package -n python3-pysaml2
Summary: Python implementation of SAML Version 2 Standard
Provides: python-pysaml2
%description -n python3-pysaml2
PySAML2 is a pure python implementation of SAML2. It contains all
necessary pieces for building a SAML2 service provider or an identity
provider. The distribution contains examples of both. Originally
written to work in a WSGI environment there are extensions that allow
you to use it with other frameworks.
%package doc
Summary: Documentation for Python implementation of SAML Version 2
%description doc
Documentation for Python implementation of SAML Version 2.
%prep
%autosetup -n pysaml2-%{version} -p1
sed -i 's/"xmlschema >=2.0.0,<3.0.0"/"xmlschema >=4.3.1"/g' pyproject.toml
%build
%pyproject_build
%install
%pyproject_install
%files -n python3-pysaml2
%doc README.md
%license LICENSE
%{_bindir}/parse_xsd2
%{_bindir}/make_metadata
%{_bindir}/mdexport
%{_bindir}/merge_metadata
%{python3_sitelib}/*
%changelog
* Mon Aug 17 2026 anyunhao <anyunhao@kylinos.cn> - 7.5.4-1
- Update to version 7.5.4
- Use GitHub v7.5.4 tarball matching Source0 URL
- Regenerate use-cryptography.patch for compat with restructured source
- Relax xmlschema version constraint for compatibility with openEuler python3-xmlschema 4.3.1
* Mon Jan 26 2026 openeuler_bot <infra@openeuler.sh> - 7.5.3-1
- Fix prepare_for_negotiated_authenticate to avoid double signing redirect requests (version:7.5.3).
* Mon Apr 28 2025 yaoxin <1024769339@qq.com> - 7.5.2-1
- Update to 7.5.2:
* Include the XSD of the XML Encryption Syntax and Processing
Version 1.1 to the schema validator
* deps: restrict pyOpenSSL up to v24.2.1 until it is replaced
* deps: update dependncies for the lockfile and examples
* Wed Jun 21 2023 chendexi <chendexi@kylinos.cn> - 7.4.2-1
- Update package to version 7.4.2
* Wed May 31 2023 wulei <wu_lei@hoperun.com> - 7.4.1-1
- Update to 7.4.1
* Tue May 31 2022 liyanan <liyanan32@h-partners.com> - 7.1.2-1
- update to 7.1.2
* Fri May 20 2022 liukuo <liukuo@kylinos.cn> - 6.5.1-2
- License compliance rectification
* Mon Aug 09 2021 OpenStack_SIG <openstack@openeuler.org> - 6.5.1-1
- Update version to 6.5.1
* Sat Jan 30 2021 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated