forked from pool/python-pysaml2
- Fix XML Signature Wrapping (XSW) vulnerabilities - CVE-2020-5390 - Add freshness period feature for MetaDataMDX - Fix bug in duration calculation in time_util library - Fix ipv6 validation to accommodate for addresses with brackets - Fix xmlsec temporary files deletions - Add method to get supported algorithms from metadata - Add mdstore method to extract assurance certifications - Add mdstore method to extract contact_person data - Add attribute mappings from the Swiss eduPerson Schema - Make AESCipher and Fernet interfaces compatible - Remove deprecated saml2.aes module - Remove deprecated saml2.extensions.ui module - Replace deprecated mongodb operations - Rename ToOld error to TooOld - Fix pytest warnings - Mock tests that need a network connection - Start dropping python2 support - Add mdstore methods to extract mdui uiinfo elements - Add attribute mapping for umbrellaID attributes - Fix logic error in pick_binding method for Entity class - Validate the audience of assertions regardless of a response being unsolicited - Fix PKCS_9 saml_url prefix - docs: Fix warnings from docs generation - docs: Update release instructions regarding branch releases - docs: Fix list formatting on IdP example page - docs: Update pysaml2 options doc with `name_id_format_allow_create` - misc: fix various typos OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysaml2?expand=0&rev=31
96 lines
3.1 KiB
RPMSpec
96 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package python-pysaml2
|
|
#
|
|
# Copyright (c) 2020 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
|
|
Version: 5.0.0
|
|
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
|
|
BuildRequires: %{python_module Paste}
|
|
BuildRequires: %{python_module cryptography >= 1.4}
|
|
BuildRequires: %{python_module dbm}
|
|
BuildRequires: %{python_module defusedxml}
|
|
BuildRequires: %{python_module mock}
|
|
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 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: xmlsec1
|
|
Requires: python-Paste
|
|
Requires: python-cryptography >= 1.4
|
|
Requires: python-defusedxml
|
|
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-zope.interface
|
|
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
|
|
%setup -q -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
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest tests
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.rst CHANGELOG.md
|
|
%python3_only %{_bindir}/make_metadata.py
|
|
%python3_only %{_bindir}/parse_xsd2.py
|
|
%python3_only %{_bindir}/mdexport.py
|
|
%python3_only %{_bindir}/merge_metadata.py
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|