# janus: a thread-safe asyncio-aware queue (sync and async interfaces to one queue). A dependency of Dash 4 (which fsl_mrs_summarise uses); # FMRIB's installer ships it for that reason. Not in Fedora. %global pypi_name janus Name: python-%{pypi_name} Version: 2.0.0 Release: 1%{?dist} Summary: Thread-safe asyncio-aware queue License: Apache-2.0 URL: https://github.com/aio-libs/janus Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-pytest-asyncio %global _description %{expand: janus is a queue that works both from synchronous threads and from asyncio code: put from a thread and get with await, or the other way round. It is the bridge Dash 4 uses between its worker threads and its async request handling.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %check %pyproject_check_import # upstream setup.cfg adds --cov flags (pytest-cov), cleared with -o addopts; test_benchmarks needs pytest-codspeed, which Fedora does not have %pytest -v -o addopts="" tests --ignore=tests/test_benchmarks.py %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.rst CHANGES.rst %changelog * Fri Oct 09 2026 Morgan Hough - 2.0.0-1 - Initial package: janus 2.0.0, the version FMRIB's installer ships for Dash 4. Free project (Apache-2.0); upstream pytest suite runs in %%check (the benchmark module is excluded: it needs pytest-codspeed).