forked from pool/python-service_identity
- Update to 23.1.0 * Removed - All Python versions up to and including 3.7 have been dropped. - Support for commonName in certificates has been dropped. It has been deprecated since 2017 and isn't supported by any major browser. - The oldest supported pyOpenSSL version (when using the pyopenssl backend) is now 17.0.0. When using such an old pyOpenSSL version, you have to pin cryptography yourself to ensure compatibility between them. Please check out contraints/oldest-pyopenssl.txt to verify what we are testing against. * Deprecated - If you've used service_identity.(cryptography|pyopenssl).extract_ids(), please switch to the new names extract_patterns(). #56 * Added - service_identity.(cryptography|pyopenssl).extract_patterns() are now public APIs (FKA extract_ids()). You can use them to extract the patterns from a certificate without verifying anything. #55 - service-identity is now fully typed. #57 OBS-URL: https://build.opensuse.org/request/show/1094381 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-service_identity?expand=0&rev=30
86 lines
2.7 KiB
RPMSpec
86 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package python-service_identity
|
|
#
|
|
# Copyright (c) 2023 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 oname service_identity
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-service_identity
|
|
Version: 23.1.0
|
|
Release: 0
|
|
Summary: Service identity verification for pyOpenSSL
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/pyca/service_identity
|
|
# no tests in upstream tarball
|
|
Source: https://github.com/pyca/service_identity/archive/%{version}.tar.gz
|
|
BuildRequires: %{python_module attrs >= 19.1.0}
|
|
BuildRequires: %{python_module cryptography}
|
|
BuildRequires: %{python_module hatch-fancy-pypi-readme}
|
|
BuildRequires: %{python_module hatch_vcs}
|
|
BuildRequires: %{python_module hatchling >= 1.14.0}
|
|
BuildRequires: %{python_module idna}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pyOpenSSL >= 17.0.0}
|
|
BuildRequires: %{python_module pyasn1-modules}
|
|
BuildRequires: %{python_module pyasn1}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module six}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-attrs >= 19.1.0
|
|
Requires: python-cryptography
|
|
Requires: python-pyasn1
|
|
Requires: python-pyasn1-modules
|
|
Requires: python-six
|
|
Recommends: python-idna
|
|
Recommends: python-pyOpenSSL
|
|
BuildArch: noarch
|
|
%ifpython2
|
|
Requires: python-ipaddress
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
service_identity aspires to give you all the tools you need for
|
|
verifying whether a certificate is valid for the intended purposes.
|
|
|
|
In the simplest case, this means host name verification. However,
|
|
service_identity implements RFC 6125 fully and plans to add other
|
|
relevant RFCs too.
|
|
|
|
%prep
|
|
%setup -q -n service-identity-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{python_sitelib}/%{oname}
|
|
%{python_sitelib}/%{oname}-%{version}*-info
|
|
|
|
%changelog
|