2018-08-08 13:44:07 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-argon2-cffi
|
|
|
|
#
|
2020-01-17 12:54:30 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2018-08-08 13:44:07 +00: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.
|
|
|
|
|
2019-02-19 16:43:50 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-08-08 13:44:07 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-03-16 10:13:47 +00:00
|
|
|
%bcond_without python2
|
2018-08-08 13:44:07 +00:00
|
|
|
Name: python-argon2-cffi
|
2020-07-28 06:34:28 +00:00
|
|
|
Version: 20.1.0
|
2018-08-08 13:44:07 +00:00
|
|
|
Release: 0
|
2018-08-08 15:11:50 +00:00
|
|
|
Summary: The Argon2 password hashing algorithm for Python
|
2018-08-08 13:44:07 +00:00
|
|
|
License: MIT
|
2019-06-04 13:51:20 +00:00
|
|
|
URL: https://github.com/hynek/argon2_cffi
|
2020-01-17 12:54:30 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/argon2-cffi/argon2-cffi-%{version}.tar.gz
|
2018-08-08 13:44:07 +00:00
|
|
|
BuildRequires: %{python_module cffi >= 1.0.0}
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module hypothesis}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools >= 6.0}
|
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
BuildRequires: fdupes
|
2018-08-08 14:02:18 +00:00
|
|
|
BuildRequires: pkgconfig
|
2018-08-08 13:44:07 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-08-08 14:02:18 +00:00
|
|
|
BuildRequires: pkgconfig(libargon2)
|
2018-08-08 13:44:07 +00:00
|
|
|
Requires: python-cffi >= 1.0.0
|
|
|
|
Requires: python-six
|
2019-04-01 10:54:29 +00:00
|
|
|
Provides: python-argon2_cffi
|
|
|
|
Obsoletes: python-argon2_cffi
|
2020-03-16 10:13:47 +00:00
|
|
|
%if %{with python2}
|
|
|
|
BuildRequires: python-enum34
|
|
|
|
%endif
|
2018-08-08 13:44:07 +00:00
|
|
|
%ifpython2
|
|
|
|
Requires: python-enum34
|
|
|
|
%endif
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-08-08 15:11:50 +00:00
|
|
|
A Python module that uses CFFI to access the Argon2 password hashing
|
|
|
|
C library.
|
2018-08-08 13:44:07 +00:00
|
|
|
|
|
|
|
%prep
|
2020-01-17 12:54:30 +00:00
|
|
|
%setup -q -n argon2-cffi-%{version}
|
2018-08-08 13:44:07 +00:00
|
|
|
|
|
|
|
%build
|
2018-08-08 14:02:18 +00:00
|
|
|
export ARGON2_CFFI_USE_SYSTEM=1
|
2018-08-08 13:44:07 +00:00
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
|
|
%check
|
2019-06-04 13:51:20 +00:00
|
|
|
# test_argument_ranges - randomly fails
|
|
|
|
%pytest_arch -k 'not test_argument_ranges'
|
2018-08-08 13:44:07 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst CHANGELOG.rst FAQ.rst
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
%changelog
|