File python-awscrt.spec of Package python-awscrt

#
# spec file for package python-awscrt
#
# Copyright (c) 2025 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/
#


Name:           python-awscrt
Version:        0.27.4
Release:        0
Summary:        A common runtime for AWS Python projects
License:        Apache-2.0
URL:            None
Source:         https://files.pythonhosted.org/packages/source/a/awscrt/awscrt-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools >= 75.3.1}
BuildRequires:  %{python_module wheel >= 0.45.1}
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module websockets}
BuildRequires:  fdupes
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  ca-certificates
Suggests:       python-autopep8 >= 2.3.1
Suggests:       python-build >= 1.2.2
Suggests:       python-sphinx >= 7.2.6
Suggests:       python-websockets >= 13.1
Suggests:       python-h2 == 4.1.0
%python_subpackages

%description
A common runtime for AWS Python projects

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

%build
export CFLAGS="%{optflags}"
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}

%check
#CHOOSE: % pytest_arch OR % pyunittest_arch -v OR CUSTOM
#% pyunittest_arch -v

%files %{python_files}
%doc README.md
%license LICENSE NOTICE LICENSE
%{python_sitearch}/awscrt
%{python_sitearch}/awscrt-%{version}.dist-info
%{python_sitearch}/_awscrt.abi3.so


%changelog
openSUSE Build Service is sponsored by