2018-08-08 09:46:40 +00:00
|
|
|
|
#
|
|
|
|
|
|
# spec file for package python-confusable-homoglyphs
|
|
|
|
|
|
#
|
2025-07-07 09:24:02 +00:00
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2018-08-08 09:46:40 +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-03-07 13:23:45 +00:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-08-08 09:46:40 +00:00
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-07-07 09:24:02 +00:00
|
|
|
|
%bcond_without libalternatives
|
2024-03-13 13:44:05 +00:00
|
|
|
|
%{?sle15_python_module_pythons}
|
2018-08-08 09:46:40 +00:00
|
|
|
|
Name: python-confusable-homoglyphs
|
2024-02-04 10:15:06 +00:00
|
|
|
|
Version: 3.3.1
|
2018-08-08 09:46:40 +00:00
|
|
|
|
Release: 0
|
2018-08-08 12:25:23 +00:00
|
|
|
|
Summary: Detector for confusable use of Unicode homoglyphs
|
2018-08-08 09:46:40 +00:00
|
|
|
|
License: MIT
|
2024-09-20 04:00:29 +00:00
|
|
|
|
URL: https://sr.ht/~valhalla/confusable_homoglyphs/
|
2018-08-08 09:46:40 +00:00
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/c/confusable_homoglyphs/confusable_homoglyphs-%{version}.tar.gz
|
2019-03-07 13:23:45 +00:00
|
|
|
|
BuildRequires: %{python_module click}
|
2024-03-13 13:47:24 +00:00
|
|
|
|
BuildRequires: %{python_module pip}
|
2018-08-08 09:46:40 +00:00
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-03-13 13:47:24 +00:00
|
|
|
|
BuildRequires: %{python_module wheel}
|
2025-07-07 09:24:02 +00:00
|
|
|
|
BuildRequires: alts
|
2018-08-08 09:46:40 +00:00
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2025-07-07 09:24:02 +00:00
|
|
|
|
Requires: alts
|
2019-03-07 13:23:45 +00:00
|
|
|
|
Requires: python-click
|
2018-08-08 09:46:40 +00:00
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
2018-08-08 12:25:23 +00:00
|
|
|
|
A Python module to detect Unicode homoglyphs and homograph attacks.
|
|
|
|
|
|
Homoglyphs are characters that may appear the same but have different
|
|
|
|
|
|
codepoints, meaning or representation, for example U+0041 LATIN
|
|
|
|
|
|
CAPITAL LETTER A ('A') vs. U+0391 GREEK CAPITAL LETTER ALPHA, 'Α'.
|
2018-08-08 09:46:40 +00:00
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-03-13 13:47:24 +00:00
|
|
|
|
%autosetup -p1 -n confusable_homoglyphs-%{version}
|
2018-08-08 09:46:40 +00:00
|
|
|
|
|
|
|
|
|
|
%build
|
2024-03-13 13:47:24 +00:00
|
|
|
|
%pyproject_wheel
|
2018-08-08 09:46:40 +00:00
|
|
|
|
|
|
|
|
|
|
%install
|
2024-03-13 13:47:24 +00:00
|
|
|
|
%pyproject_install
|
2020-05-27 14:46:51 +00:00
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/confusable_homoglyphs
|
2018-08-08 09:46:40 +00:00
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
2025-07-08 12:39:46 +00:00
|
|
|
|
# temporarily disable CLI tests, broken with (exactly) click 8.2.1 https://github.com/pallets/click/issues/2939
|
|
|
|
|
|
rm tests/test_cli.py
|
2021-05-31 20:27:48 +00:00
|
|
|
|
%pyunittest discover -v tests/
|
2018-08-08 09:46:40 +00:00
|
|
|
|
|
2025-07-07 09:24:02 +00:00
|
|
|
|
%pre
|
|
|
|
|
|
%python_libalternatives_reset_alternative confusable_homoglyphs
|
2020-05-27 14:46:51 +00:00
|
|
|
|
|
2018-08-08 09:46:40 +00:00
|
|
|
|
%files %{python_files}
|
|
|
|
|
|
%doc README.rst
|
|
|
|
|
|
%license LICENSE
|
2024-03-13 13:47:24 +00:00
|
|
|
|
%{python_sitelib}/confusable_homoglyphs
|
2024-09-20 04:00:29 +00:00
|
|
|
|
%{python_sitelib}/confusable_homoglyphs-%{version}.dist-info
|
2020-05-27 14:46:51 +00:00
|
|
|
|
%python_alternative %{_bindir}/confusable_homoglyphs
|
2018-08-08 09:46:40 +00:00
|
|
|
|
|
|
|
|
|
|
%changelog
|