2014-02-24 15:01:28 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-cryptography
|
|
|
|
#
|
2019-01-03 13:07:59 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-02-24 15:01:28 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-06 12:48:48 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-02-24 15:01:28 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-03-30 16:12:18 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2018-01-18 14:31:34 +01:00
|
|
|
%bcond_without python2
|
2014-02-24 15:01:28 +01:00
|
|
|
Name: python-cryptography
|
2020-05-15 12:03:46 +02:00
|
|
|
Version: 2.9.2
|
2014-02-24 15:01:28 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Python library which exposes cryptographic recipes and primitives
|
2017-11-02 16:19:19 +01:00
|
|
|
License: Apache-2.0 OR BSD-3-Clause
|
2014-02-24 15:01:28 +01:00
|
|
|
Group: Development/Languages/Python
|
2018-03-27 14:55:23 +02:00
|
|
|
URL: https://cryptography.io/en/latest/
|
2017-03-30 16:12:18 +02:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz
|
|
|
|
Source1: https://files.pythonhosted.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz.asc
|
2014-02-24 15:01:28 +01:00
|
|
|
Source2: %{name}.keyring
|
2015-09-17 16:30:34 +02:00
|
|
|
# PATCH-FIX-SLE disable-uneven-sizes-tests.patch bnc#944204
|
|
|
|
Patch1: disable-uneven-sizes-tests.patch
|
2017-09-07 16:49:40 +02:00
|
|
|
Patch2: skip_openssl_memleak_test.patch
|
2017-03-30 16:12:18 +02:00
|
|
|
BuildRequires: %{python_module asn1crypto >= 0.21.0}
|
2017-09-29 12:42:10 +02:00
|
|
|
BuildRequires: %{python_module cffi >= 1.7}
|
2019-05-29 17:01:07 +02:00
|
|
|
BuildRequires: %{python_module cryptography-vectors = %{version}}
|
2017-03-30 16:12:18 +02:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module idna >= 2.1}
|
|
|
|
BuildRequires: %{python_module pyasn1-modules}
|
|
|
|
BuildRequires: %{python_module pytz}
|
|
|
|
BuildRequires: %{python_module setuptools >= 11.3}
|
|
|
|
BuildRequires: %{python_module six >= 1.4.1}
|
2017-11-02 16:19:19 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: pkgconfig
|
2017-03-30 16:12:18 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-11-02 16:19:19 +01:00
|
|
|
BuildRequires: pkgconfig(libffi)
|
|
|
|
Requires: python-asn1crypto >= 0.21.0
|
Accepting request 669484 from home:stroeder:branches:devel:languages:python
- Dependency on python-idna changed to "Recommends" aligned with
change in upstream source (see below)
- update to 2.5:
* BACKWARDS INCOMPATIBLE: U-label strings were deprecated in version 2.1,
but this version removes the default idna dependency as well. If you still
need this deprecated path please install cryptography with the idna extra:
pip install cryptography[idna].
* BACKWARDS INCOMPATIBLE: The minimum supported PyPy version is now 5.4.
* Numerous classes and functions have been updated to allow bytes-like
types for keying material and passwords, including symmetric algorithms,
AEAD ciphers, KDFs, loading asymmetric keys, and one time password classes.
* Updated Windows, macOS, and manylinux1 wheels to be compiled with OpenSSL 1.1.1a.
* Added support for SHA512_224 and SHA512_256 when using OpenSSL 1.1.1.
* Added support for SHA3_224, SHA3_256, SHA3_384, and SHA3_512 when using OpenSSL 1.1.1.
* Added support for X448 key exchange when using OpenSSL 1.1.1.
* Added support for SHAKE128 and SHAKE256 when using OpenSSL 1.1.1.
* Added initial support for parsing PKCS12 files with load_key_and_certificates().
* Added support for IssuingDistributionPoint.
* Added rfc4514_string() method to x509.Name,
x509.RelativeDistinguishedName, and x509.NameAttribute to format the name
or component an RFC 4514 Distinguished Name string.
* Added from_encoded_point(), which immediately checks if the point is on
the curve and supports compressed points. Deprecated the previous method
from_encoded_point().
* Added signature_hash_algorithm to OCSPResponse.
* Updated X25519 key exchange support to allow additional serialization
methods. Calling public_bytes() with no arguments has been deprecated.
* Added support for encoding compressed and uncompressed points via
public_bytes(). Deprecated the previous method encode_point().
OBS-URL: https://build.opensuse.org/request/show/669484
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cryptography?expand=0&rev=110
2019-01-29 10:59:04 +01:00
|
|
|
Recommends: python-idna >= 2.1
|
2017-11-02 16:19:19 +01:00
|
|
|
Requires: python-packaging
|
|
|
|
Requires: python-pyasn1 >= 0.1.8
|
|
|
|
Requires: python-setuptools >= 11.3
|
|
|
|
Requires: python-six >= 1.4.1
|
|
|
|
%requires_eq python-cffi
|
2018-01-18 14:31:34 +01:00
|
|
|
%if %{with python2}
|
2017-11-10 20:27:10 +01:00
|
|
|
BuildRequires: python2-enum34
|
|
|
|
BuildRequires: python2-ipaddress
|
|
|
|
%endif
|
2017-03-30 16:12:18 +02:00
|
|
|
# SECTION Test requirements
|
2018-03-02 22:42:20 +01:00
|
|
|
BuildRequires: %{python_module hypothesis >= 1.11.4}
|
2017-03-30 16:12:18 +02:00
|
|
|
BuildRequires: %{python_module iso8601}
|
2017-05-02 15:10:17 +02:00
|
|
|
BuildRequires: %{python_module packaging}
|
2017-03-30 16:12:18 +02:00
|
|
|
BuildRequires: %{python_module pretend}
|
|
|
|
BuildRequires: %{python_module pyasn1 >= 0.1.8}
|
2018-03-02 22:42:20 +01:00
|
|
|
BuildRequires: %{python_module pytest > 3.3.0}
|
2017-03-30 16:12:18 +02:00
|
|
|
BuildRequires: %{python_module virtualenv}
|
|
|
|
# /SECTION
|
2018-01-16 11:27:31 +01:00
|
|
|
# python-base is not enough, we need the _ssl module
|
2018-01-27 11:42:10 +01:00
|
|
|
%ifpython2
|
2017-03-30 16:12:18 +02:00
|
|
|
Requires: python-enum34
|
|
|
|
Requires: python-ipaddress
|
2018-02-08 11:56:56 +01:00
|
|
|
Requires: python2
|
2017-03-30 16:12:18 +02:00
|
|
|
%endif
|
2018-02-03 14:02:25 +01:00
|
|
|
%ifpython3
|
|
|
|
Requires: python3
|
|
|
|
%endif
|
2017-03-30 16:12:18 +02:00
|
|
|
%python_subpackages
|
2014-02-24 15:01:28 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
cryptography is a package designed to expose cryptographic
|
|
|
|
recipes and primitives to Python developers. Our goal is
|
|
|
|
for it to be your "cryptographic standard library". It
|
2018-06-12 10:00:09 +02:00
|
|
|
supports Python 2.7, Python 3.4+, and PyPy-5.3+.
|
2014-02-24 15:01:28 +01:00
|
|
|
|
|
|
|
cryptography includes both high level recipes, and low
|
|
|
|
level interfaces to common cryptographic algorithms such as
|
|
|
|
symmetric ciphers, message digests and key derivation
|
|
|
|
functions.
|
|
|
|
|
|
|
|
%prep
|
2019-05-29 17:01:07 +02:00
|
|
|
%setup -q -n cryptography-%{version}
|
2015-09-17 16:30:34 +02:00
|
|
|
%patch1 -p1
|
2017-09-07 16:49:40 +02:00
|
|
|
%patch2 -p1
|
2015-09-17 16:30:34 +02:00
|
|
|
|
2014-02-24 15:01:28 +01:00
|
|
|
%build
|
2017-03-30 16:12:18 +02:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
%python_build
|
2014-02-24 15:01:28 +01:00
|
|
|
|
|
|
|
%install
|
2019-05-29 17:01:07 +02:00
|
|
|
# Actually other *.c and *.h are appropriate
|
|
|
|
# see https://github.com/pyca/cryptography/issues/1463
|
|
|
|
find . -name .keep -print -delete
|
|
|
|
|
2017-03-30 16:12:18 +02:00
|
|
|
%python_install
|
2018-12-06 12:48:48 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2014-02-24 15:01:28 +01:00
|
|
|
|
2014-04-01 10:25:31 +02:00
|
|
|
%check
|
2019-05-29 17:01:07 +02:00
|
|
|
%pytest_arch
|
2014-02-24 15:01:28 +01:00
|
|
|
|
2017-03-30 16:12:18 +02:00
|
|
|
%files %{python_files}
|
2018-03-26 09:50:13 +02:00
|
|
|
%license LICENSE LICENSE.APACHE LICENSE.BSD
|
2016-03-13 22:20:08 +01:00
|
|
|
%doc AUTHORS.rst CONTRIBUTING.rst CHANGELOG.rst README.rst
|
2017-03-30 16:12:18 +02:00
|
|
|
%{python_sitearch}/*
|
2014-02-24 15:01:28 +01:00
|
|
|
|
|
|
|
%changelog
|