forked from pool/python-oic
		
	- Update to 1.7.0 * Fix test for new requests version by @tpazderka in #841 * Fix typing for Cryptodomex by @tpazderka in #843 * Don't throw exception for token error response. by @zamzterz in #844 * Fix links after repo move by @tpazderka in #846 * Pass timeout to all requests by @tpazderka in #848 * Improve settings by using pydantic by @tpazderka in #847 * Correct OpenID Connect Core specification URL in doc by @hlin in #850 * Add authn_method to Consumer.complete() by @stinovlas in #852 * Use session_state to backup consumer state if available by @gbip in #854 * Repair some oauth_examples and get rid of the outdated jquery file by @schlenk in #857 * Pin autodoc_pydantic to >=2.0.0 by @schlenk in #863 * Remove Python 3.7 by @schlenk in #870 * Fix logging without format string by @schlenk in #871 * Bump jinja2 from 2.11.3 to 3.1.3 in /oidc_example/simple_op by @dependabot in #865 * OSSF Scorecard & Badge by @schlenk in #874 * Update scorecard.yml by @schlenk in #875 - Drop fix-scheme-message.patch OBS-URL: https://build.opensuse.org/request/show/1235864 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oic?expand=0&rev=16
		
			
				
	
	
		
			98 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
			
		
		
	
	
			98 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
#
 | 
						|
# spec file for package python-oic
 | 
						|
#
 | 
						|
# Copyright (c) 2024 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/
 | 
						|
#
 | 
						|
 | 
						|
 | 
						|
%define skip_python2 1
 | 
						|
%global modname oic
 | 
						|
Name:           python-oic
 | 
						|
Version:        1.7.0
 | 
						|
Release:        0
 | 
						|
Summary:        A complete OpenID Connect implementation in Python
 | 
						|
License:        Apache-2.0
 | 
						|
URL:            https://github.com/OpenIDC/pyoidc
 | 
						|
Source:         https://github.com/OpenIDC/pyoidc/archive/%{version}.tar.gz#/%{modname}-%{version}.tar.gz
 | 
						|
BuildRequires:  %{python_module Beaker}
 | 
						|
BuildRequires:  %{python_module Mako}
 | 
						|
BuildRequires:  %{python_module cryptography}
 | 
						|
BuildRequires:  %{python_module dbm}
 | 
						|
BuildRequires:  %{python_module defusedxml}
 | 
						|
BuildRequires:  %{python_module freezegun}
 | 
						|
BuildRequires:  %{python_module ldap}
 | 
						|
BuildRequires:  %{python_module pycryptodomex}
 | 
						|
BuildRequires:  %{python_module pydantic-settings}
 | 
						|
BuildRequires:  %{python_module pyjwkest >= 1.3.6}
 | 
						|
BuildRequires:  %{python_module pytest}
 | 
						|
BuildRequires:  %{python_module requests}
 | 
						|
BuildRequires:  %{python_module responses}
 | 
						|
BuildRequires:  %{python_module setuptools}
 | 
						|
BuildRequires:  %{python_module testfixtures}
 | 
						|
BuildRequires:  %{python_module typing_extensions}
 | 
						|
BuildRequires:  %{python_module typing}
 | 
						|
BuildRequires:  fdupes
 | 
						|
BuildRequires:  python-rpm-macros
 | 
						|
Requires:       python-Beaker
 | 
						|
Requires:       python-Mako
 | 
						|
Requires:       python-cryptography
 | 
						|
Requires:       python-dbm
 | 
						|
Requires:       python-defusedxml
 | 
						|
Requires:       python-pycryptodomex
 | 
						|
Requires:       python-pydantic-settings
 | 
						|
Requires:       python-pyjwkest >= 1.3.6
 | 
						|
Requires:       python-requests
 | 
						|
Requires:       python-typing
 | 
						|
Requires:       python-typing_extensions
 | 
						|
Suggests:       python-ldap
 | 
						|
BuildArch:      noarch
 | 
						|
%python_subpackages
 | 
						|
 | 
						|
%description
 | 
						|
This is a complete Python implementation of OpenID Connect as specified in
 | 
						|
the OpenID Connect Core specification. As a side effect, this is a complete
 | 
						|
implementation of OAuth2.0 too.
 | 
						|
 | 
						|
%prep
 | 
						|
%autosetup -p1 -n pyoidc-%{version}
 | 
						|
find src -type f -exec sed -i '1 {/#!/d}' {} +
 | 
						|
sed -i 's/--color=yes//' tox.ini
 | 
						|
 | 
						|
%build
 | 
						|
%python_build
 | 
						|
 | 
						|
%install
 | 
						|
%python_install
 | 
						|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
 | 
						|
%python_clone -a %{buildroot}%{_bindir}/oic-client-management
 | 
						|
 | 
						|
%post
 | 
						|
%python_install_alternative oic-client-management
 | 
						|
 | 
						|
%postun
 | 
						|
%python_uninstall_alternative oic-client-management
 | 
						|
 | 
						|
%check
 | 
						|
export PYTHONPATH=src
 | 
						|
%pytest -k 'not network'
 | 
						|
 | 
						|
%files %{python_files}
 | 
						|
%doc README.rst
 | 
						|
%license LICENSE.txt
 | 
						|
%{python_sitelib}/oic
 | 
						|
%{python_sitelib}/oic-%{version}*-info
 | 
						|
%python_alternative %{_bindir}/oic-client-management
 | 
						|
 | 
						|
%changelog
 |