14
0
Files
python-pysaml2/python-pysaml2.spec

124 lines
4.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-pysaml2
#
Accepting request 967451 from home:pgajdos:python - version update to 7.1.2 ## 7.1.2 (2022-03-04) - fix assertion policy filter to try to resolve the local_name using the friendly name if it failed with the name_format - reload metadata in-place to avoid memory leak - tests: Restrict pymongo to v3 - docs: highlight installation command ## 7.1.1 (2022-02-22) - Process and verify the metadata signature for EntitiesDescriptor and EntityDescriptor - Fix client to be able to retry creating an AuthnRequest with a different binding - Allow requested_authn_context to be an object - AttributeValues are optional; allow Attributes to not have values - Update SWAMID entity category to support https://myacademicid.org/entity-categories/esi - Fix signing for requests with the SOAP binding - tests: new test case for signed SOAP LogoutRequests - docs: document the metadata node_name option for the remote source - examples: align with latest updates - deps: declare setuptools as a requirement for processing the package version - build: add python 3.9 and 3.10 to classifiers - misc: linter fixes ## 7.1.0 (2021-11-16) - Fix signature verification for the redirect binding for AuthnRequest and LogoutRequest. - Include encryption KeyName in encrypted assertions. - Add "reason" field in invalid signature errors due to invalid document format. - New SP configuration option requested_authn_context to set the preferred RequestedAuthnContext class reference. - Add support for metadata refresh by adding a metadata_reload method into saml2.Entity. This method is to be externally invoked, and to receive the same metadata configuration as what was passed under the metadata key to saml2.Config. The method loads a new metadata configuration and swaps it in (replacing the references across OBS-URL: https://build.opensuse.org/request/show/967451 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysaml2?expand=0&rev=61
2022-04-07 14:47:20 +00:00
# Copyright (c) 2022 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-%{**}}
%global modname pysaml2
%global skip_python2 1
Name: python-pysaml2
Accepting request 1008601 from home:yarunachalam:branches:devel:languages:python - version update to 7.2.1 (2022-08-23) * Accept and forward sign and digest alg information when creating a metadata string * Fix tests to comply with latest xmlschema - version update to 7.2.0 (2022-08-10) * Add schemas for eIDAS extensions, elements and attributes * Add the voPerson v2 attributes mappings; see reference * Add the registration_info_typ method on saml2.mdstore.MetadataStore to get the registration information from an EntityDescriptor services * Allow exceptions to convey the SAML StatusCode in an error response * Fix typo on method name under saml2.mdstore.MetadataStore; from sbibmd_scopes to shibmd_scopes * Add partial support for xs:date AttributeValue type * Fallback to xs:string as the type of the AttributeValue text node * Fallback to the authn context class declaration to set the authn context class reference * Αdd configuration option http_client_timeout to set a timeout on the HTTP calls by the httpbase module * Load certificates using cryptography and support certificate chains * Remove deprecated cryptography backend param * Fix assertion policy filter: Fallback to match a known attribute or return its name * examples: Allow multiple attributes to be returned by the idp * tests: Minor cleanups * docs: Reference python2 compatible fork * misc: add pepy badges on the README file OBS-URL: https://build.opensuse.org/request/show/1008601 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysaml2?expand=0&rev=65
2022-10-07 07:51:47 +00:00
Version: 7.2.1
Release: 0
Summary: Python implementation of SAML Version 2 to be used in a WSGI environment
License: Apache-2.0
URL: https://github.com/IdentityPython/pysaml2
Source: https://github.com/IdentityPython/pysaml2/archive/v%{version}.tar.gz
# PATCH-FIX-UPSTREAM closed PR, but provides context:
# gh#IdentityPython/pysaml2#843
Patch0: pymongo-4-support.patch
BuildRequires: %{python_module Paste}
BuildRequires: %{python_module cryptography >= 3.1}
BuildRequires: %{python_module dbm}
BuildRequires: %{python_module defusedxml}
BuildRequires: %{python_module importlib-resources}
BuildRequires: %{python_module pyOpenSSL}
BuildRequires: %{python_module pymongo}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module repoze.who}
BuildRequires: %{python_module requests >= 1.0.0}
BuildRequires: %{python_module responses}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module xmlschema >= 1.2.1}
BuildRequires: %{python_module zope.interface}
BuildRequires: fdupes
# This is needed as xmlsec itself does not pull any backend by default
# Will be fixed in future xmlsec releases
BuildRequires: libxmlsec1-openssl1
BuildRequires: python-rpm-macros
BuildRequires: update-alternatives
BuildRequires: xmlsec1
Requires: python-Paste
Requires: python-cryptography >= 3.1
Requires: python-defusedxml
Requires: python-importlib-resources
Requires: python-pyOpenSSL
Requires: python-python-dateutil
Requires: python-pytz
Requires: python-repoze.who
Requires: python-requests >= 1.0.0
Requires: python-six
Requires: python-xmlschema >= 1.2.1
Requires: python-zope.interface
Requires(post): update-alternatives
Requires(postun):update-alternatives
# We need to have arch build to make ifarch condition below working
# BuildArch: noarch
%python_subpackages
%description
PySAML2 is a pure python implementation of SAML2.
It contains all necessary pieces for building a
SAML2 service provider or an identity provider.
%prep
%autosetup -p1 -n %{modname}-%{version}
# delete shebang of files not in executable path
find src/ -name '*.py' -print0 | xargs -0 sed -i '1s/#!.*$//'
# remove tests that poll internet
rm -f tests/test_30_mdstore*.py
%build
%python_build
%install
%python_install
for exec in make_metadata.py parse_xsd2.py mdexport.py merge_metadata.py ; do
%python_clone -a %{buildroot}%{_bindir}/$exec
done
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
Accepting request 967451 from home:pgajdos:python - version update to 7.1.2 ## 7.1.2 (2022-03-04) - fix assertion policy filter to try to resolve the local_name using the friendly name if it failed with the name_format - reload metadata in-place to avoid memory leak - tests: Restrict pymongo to v3 - docs: highlight installation command ## 7.1.1 (2022-02-22) - Process and verify the metadata signature for EntitiesDescriptor and EntityDescriptor - Fix client to be able to retry creating an AuthnRequest with a different binding - Allow requested_authn_context to be an object - AttributeValues are optional; allow Attributes to not have values - Update SWAMID entity category to support https://myacademicid.org/entity-categories/esi - Fix signing for requests with the SOAP binding - tests: new test case for signed SOAP LogoutRequests - docs: document the metadata node_name option for the remote source - examples: align with latest updates - deps: declare setuptools as a requirement for processing the package version - build: add python 3.9 and 3.10 to classifiers - misc: linter fixes ## 7.1.0 (2021-11-16) - Fix signature verification for the redirect binding for AuthnRequest and LogoutRequest. - Include encryption KeyName in encrypted assertions. - Add "reason" field in invalid signature errors due to invalid document format. - New SP configuration option requested_authn_context to set the preferred RequestedAuthnContext class reference. - Add support for metadata refresh by adding a metadata_reload method into saml2.Entity. This method is to be externally invoked, and to receive the same metadata configuration as what was passed under the metadata key to saml2.Config. The method loads a new metadata configuration and swaps it in (replacing the references across OBS-URL: https://build.opensuse.org/request/show/967451 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysaml2?expand=0&rev=61
2022-04-07 14:47:20 +00:00
# https://github.com/IdentityPython/pysaml2/issues/858
sed -i 's:import mock:from unittest import mock:' tests/test_41_response.py
sed -i 's:mock.mock:unittest.mock:' tests/test_52_default_sign_alg.py
# Excluded tests for i586 gh#IdentityPython/pysaml2#682 and gh#IdentityPython/pysaml2#759
%ifarch %{ix86}
%pytest -k "not (test_assertion_consumer_service or test_swamid_sp or test_swamid_idp or test_other_response or test_mta or test_unknown_subject or test_filter_ava_registration_authority_1)" tests
%else
%pytest tests
%endif
%post
%python_install_alternative make_metadata.py parse_xsd2.py mdexport.py merge_metadata.py
%postun
%python_uninstall_alternative make_metadata.py parse_xsd2.py mdexport.py merge_metadata.py
%files %{python_files}
%license LICENSE
%doc README.rst CHANGELOG.md
%python_alternative %{_bindir}/make_metadata.py
%python_alternative %{_bindir}/parse_xsd2.py
%python_alternative %{_bindir}/mdexport.py
%python_alternative %{_bindir}/merge_metadata.py
%{python_sitelib}/*
%changelog