66 lines
1.6 KiB
RPMSpec
66 lines
1.6 KiB
RPMSpec
Name: python-argon2-cffi-bindings
|
|
Version: 21.2.0
|
|
Release: 1
|
|
Summary: Low-level CFFI bindings for Argon2
|
|
|
|
License: MIT
|
|
URL: https://github.com/hynek/argon2-cffi-bindings
|
|
Source: %{pypi_source argon2-cffi-bindings}
|
|
|
|
BuildRequires: gcc
|
|
BuildRequires: python3-devel
|
|
BuildRequires: pkgconfig(libargon2)
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-setuptools_scm
|
|
BuildRequires: python3-cffi
|
|
BuildRequires: python3-pytest
|
|
|
|
|
|
%global _description %{expand:
|
|
This package provides low-level CFFI bindings to the Argon2 password hashing
|
|
algorithm.
|
|
|
|
If you want to hash passwords in an application,
|
|
this package is not for you.
|
|
Have a look at argon2-cffi with its high-level abstractions!
|
|
|
|
These bindings have been extracted from argon2-cffi and it remains its main
|
|
consumer. However, they may be used by other packages that want to use the
|
|
Argon2 library without dealing with C-related complexities.}
|
|
|
|
|
|
%description %_description
|
|
|
|
%package -n python3-argon2-cffi-bindings
|
|
Summary: %{summary}
|
|
|
|
%description -n python3-argon2-cffi-bindings %_description
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n argon2-cffi-bindings-%{version}
|
|
# using system libargon
|
|
rm -r extras/libargon2
|
|
export ARGON2_CFFI_USE_SYSTEM=1
|
|
|
|
%build
|
|
export ARGON2_CFFI_USE_SYSTEM=1
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install argon2-cffi-bindings==%{version}
|
|
|
|
%check
|
|
export PYTHONPATH=%{buildroot}%{python3_sitearch}
|
|
pytest -v
|
|
|
|
%files -n python3-argon2-cffi-bindings
|
|
%{python3_sitearch}/*
|
|
%doc README.md CHANGELOG.md
|
|
|
|
|
|
%changelog
|
|
* Fri Jun 02 2023 wangkai <13474090681@163.com> - 21.2.0-1
|
|
- Package init
|