forked from pool/python-pyhibp
- Update to version 3.1.0 * New function: pwnedpasswords.suffix_search(hash_prefix=prefix) was created in order to have a dedicated function return the suffix list. * Function modification notice: pwnedpasswords.is_password_breached will be modified in an upcoming release to remove the ability to search for suffixes; use suffix_search(hash_prefix=prefix) instead. The parameter first_5_hash_chars will be removed as a consequence. * Upcoming return type change for empty sets: For the functions get_account_breaches, get_all_breaches, get_single_breach, and get_pastes--all contained in the pyhibp module--when no items would be returned from the HIBP backend, the returned item will be an empty object matching the standard return type for the function, and not a Boolean False. This will occur when v4.0.0 is released. Return types will be: - get_account_breaches -> [] / list - get_all_breaches -> [] / list - get_single_breach -> {} / dict - get_pastes -> [] / list OBS-URL: https://build.opensuse.org/request/show/712848 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyhibp?expand=0&rev=3
62 lines
2.0 KiB
RPMSpec
62 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-pyhibp
|
|
#
|
|
# Copyright (c) 2019 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-pyhibp
|
|
Version: 3.1.0
|
|
Release: 0
|
|
Summary: An interface to Troy Hunt's 'Have I Been Pwned' public API
|
|
License: AGPL-3.0-or-later
|
|
Group: Development/Languages/Python
|
|
URL: https://gitlab.com/kitsunix/pyHIBP/pyHIBP
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyhibp/pyhibp-%{version}.tar.gz
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module requests >= 2.20.0 }
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module tox}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-requests >= 2.20.0
|
|
Requires: python-six >= 1.11.0
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
A Python interface to Troy Hunt's 'Have I Been Pwned?' (HIBP) public API.
|
|
|
|
%prep
|
|
%setup -q -n pyhibp-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
### Tests need network access to https://haveibeenpwned.com
|
|
#%%check
|
|
#%%python_expand PYTHONPATH=%%{buildroot}%%{$python_sitelib} py.test-%%{$python_version}
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc CHANGELOG.md README.md
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|