File python-pyunormalize.spec of Package python-pyunormalize

#
# spec file for package python-pyunormalize
#
# Copyright (c) 2021 SUSE LLC
#
# 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() python3-%{**}}
%define skip_python2 1
# requires some unavailable modules
%bcond_with docs
Name:           python-pyunormalize
Version:        16.0.0
Release:        0
Summary:        Unicode normalization algorithm
License:        MIT
URL:            https://github.com/mlodewijck/pyunormalize
Source:         https://files.pythonhosted.org/packages/source/p/pyunormalize/pyunormalize-%{version}.tar.gz
BuildRequires:  %{python_module poetry-core}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildArch:      noarch

%python_subpackages

%description
Unicode normalization forms (NFC, NFKC, NFD, NFKD). A library independent of the Python core Unicode database. This library supports version 16.0 of the Unicode Standard.


%prep
%autosetup -p1 -n pyunormalize-%{version}

%build
%python_build

%install
%python_install

%files %{python_files}
%license LICENSE UNICODE-LICENSE
%doc README.md
%{python_sitelib}/pyunormalize
%{python_sitelib}/pyunormalize-%{version}*-info

%changelog
openSUSE Build Service is sponsored by