Package python3-module-charset-normalizer: Specfile

Name: python3-module-charset-normalizer
Version: 3.2.0
Release: alt1

Summary: The Real First Universal Charset Detector
License: MIT
Group: Development/Python
Url: https://pypi.org/project/charset-normalizer/

Source0: %name-%version-%release.tar

BuildRequires: rpm-build-python3
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
%ifnarch %ix86
BuildRequires: python3(mypyc)
%endif
BuildRequires: python3(pytest)
BuildRequires: python3(pytest-cov)

%description
%summary

%prep
%setup

%build
%ifnarch %ix86
export CHARSET_NORMALIZER_USE_MYPYC=1
%endif
%pyproject_build

%install
%pyproject_install

%files
%_bindir/normalizer
%python3_sitelibdir/charset_normalizer
%python3_sitelibdir/charset_normalizer-%version.dist-info

%check
%pyproject_run_pytest tests

%changelog
* Fri May 03 2024 Sergey Bolshakov <sbolshakov@altlinux.org> 3.2.0-alt1
- 3.2.0 released

* Fri Dec 02 2022 Sergey Bolshakov <sbolshakov@altlinux.ru> 2.1.1-alt1
- 2.1.1 released

* Thu Jul 21 2022 Sergey Bolshakov <sbolshakov@altlinux.ru> 2.1.0-alt1
- 2.1.0 released

* Mon Oct 04 2021 Sergey Bolshakov <sbolshakov@altlinux.ru> 2.0.6-alt1
- initial