Name: python-reactivex
Version: 4.0.4
Release: 5%{dist}
Summary: API for asynchronous programming with observable streams
License: MIT
URL: https://github.com/ReactiveX/RxPY
# Use two sources.
# Only PyPi sources contains a version number in pyproject files
# Only github archive contains tests
Source0: %{pypi_source reactivex}
Source1: %{url}/archive/v%{version}/RxPy-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros
# Test dependencies:
BuildRequires: python3dist(pytest)
%global _description\
ReactiveX for Python (RxPY) is a library for composing asynchronous and\
event-based programs using observable sequences and pipable query\
operators in Python. Using Rx, developers represent asynchronous\
data streams with Observables, query asynchronous data streams\
using operators, and parameterize concurrency in data/event\
streams using Schedulers.
%description %_description
%package -n python3-reactivex
Summary: %{summary}
%description -n python3-reactivex %_description
%prep
%autosetup -n reactivex-%{version}
tar -xf %{SOURCE1} RxPY-%{version}/tests --strip-components=1
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files reactivex
%check
%pytest
%pyproject_check_import
%files -n python3-reactivex -f %{pyproject_files}
%doc README.rst
%license LICENSE
%changelog
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 4.0.4-2
- Rebuilt for Python 3.12
* Fri Mar 03 2023 Steve Traylen <steve.traylen@cern.ch> - 4.0.4-1
- Initial Package