4454c29
%global srcname zxcvbn-python
4454c29
4454c29
Name: python-zxcvbn
4454c29
Summary: Realistic password strength estimator python module
4454c29
Version: 4.4.28
f156f14
Release: 4%{?dist}
4454c29
License: MIT
4454c29
URL: https://github.com/dwolfhub/zxcvbn-python
4454c29
Source: https://github.com/dwolfhub/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
4454c29
BuildArch: noarch
4454c29
BuildRequires: python3-devel
4454c29
BuildRequires: python3-setuptools
4454c29
BuildRequires: pytest
4454c29
4454c29
%global _description %{expand:
4454c29
A realistic password strength estimator.
4454c29
4454c29
This is a Python implementation of the library created by the team at Dropbox.
4454c29
The original library was written for JavaScript.
4454c29
4454c29
Accepts user data to be added to the dictionaries that are tested against
4454c29
(name, birthdate, etc).  Gives a score to the password, from 0 (terrible)
4454c29
to 4 (great). It provides feedback on the password and ways to improve it
4454c29
and returns time estimates on how long it would take to guess the password
4454c29
in different situations.}
4454c29
%description %_description
4454c29
4454c29
%package -n python3-zxcvbn
4454c29
Summary: Realistic password strength estimator python3 module
4454c29
4454c29
%description -n python3-zxcvbn %_description
4454c29
4454c29
%prep
4454c29
%autosetup -n %{srcname}-%{version}
4454c29
4454c29
%build
4454c29
%py3_build
4454c29
4454c29
%check
4454c29
%pytest
4454c29
4454c29
%install
4454c29
%py3_install
4454c29
4454c29
%files -n python3-zxcvbn
4454c29
%license LICENSE.txt
4454c29
%doc README.rst
4454c29
%{_bindir}/zxcvbn
4454c29
%{python3_sitelib}/zxcvbn-*.egg-info/
4454c29
%{python3_sitelib}/zxcvbn
4454c29
4454c29
%changelog
f156f14
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.28-4
f156f14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
f156f14
f3bb93c
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 4.4.28-3
f3bb93c
- Rebuilt for Python 3.10
f3bb93c
4454c29
* Sun May 30 2021 Paul Wouters <paul.wouters@aiven.io> - 4.4.28-2
4454c29
- Resolves: rhbz#1965144 Package review issues
4454c29
4454c29
* Thu May 27 2021 Paul Wouters <paul.wouters@aiven.io> - 4.4.28-1
4454c29
- Initial package