File python3-cryptography.spec of Package python3-cryptography

#
# spec file for package python3-cryptography
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           python3-cryptography
Version:        1.7.2
Release:        0
Url:            https://cryptography.io/en/latest/
Summary:        Python library which exposes cryptographic recipes and primitives
License:        Apache-2.0 or BSD-3-Clause
Group:          Development/Languages/Python
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
Source2:        %{name}.keyring
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python3-cffi >= 0.8
BuildRequires:  python3-idna
BuildRequires:  python3-pyasn1
BuildRequires:  python3-setuptools
BuildRequires:  python3-six >= 1.4.1
BuildRequires:  pkgconfig(libffi)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(python3)
#test requirements
BuildRequires:  python3-pytest
%if %{?suse_version} == 1310
BuildRequires:  python3-enum34
Requires:       python3-enum34
%endif
Requires:       python3-cffi >= 0.8
Requires:       python3-idna
Requires:       python3-pyasn1
Requires:       python3-six >= 1.4.1

%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
supports Python 2.6-2.7, Python 3.2+, and PyPy.

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
%setup -q -n cryptography-%{version}

%build
CFLAGS="%{optflags} -fno-strict-aliasing" python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

#mvyskocil: FIXME, modules iso8601 and pretend are needed to run tests
#%check
#py.test tests/

%files
%defattr(-,root,root,-)
%doc AUTHORS.rst CONTRIBUTING.rst LICENSE README.rst
%{python3_sitearch}/cryptography/
%{python3_sitearch}/cryptography-%{version}-py*.egg-info/

%changelog
openSUSE Build Service is sponsored by