Blob Blame History Raw
%global sname aiokafka
%global owner aio-libs

Name:       python-%{sname}
Version:    0.8.0
Release:    1%{?dist}
Summary:    Asyncio client for Kafka
License:    ASL 2.0
BuildArch:  noarch

BuildRequires:  python3-devel python3-pytest python3-docker python3-snappy snappy-devel python3-lz4 python3-zstd
Requires:       python3


%package -n python3-%{sname}
Summary:    %{summary}

%description -n python3-%{sname}

%autosetup -p1 -n %{sname}-%{version}

%pyproject_buildrequires -r

rm aiokafka/record/_crecords/crc32c.[ch]

%pyproject_save_files %{sname}

# Some tests cannot be run due to incompatibility issues and lack of certificates
# The flag 'no:warnings' was added since the 'distutils' is now deprecated in Python 3.10 and 3.11, to be removed in Python 3.12
AIOKAFKA_NO_EXTENSIONS=1 py.test -s -p no:warnings\
 -k 'not test_read_write_serde_v0_v1_with_compression and not test_create_ssl_context and not test_txn_manager and not test_read_write_serde_v2 and not test_unavailable_codec' tests

%files -n python3-%{sname} -f %{pyproject_files}
%license LICENSE
%doc README.rst

* Tue Jan 10 2023 Italo Garcia <> - 0.8.0-1
- Update to version 0.8.0

* Tue Jul 12 2022 Italo Garcia <> - 0.7.2-1
- Initial package