Name: python-busylib Version: 1.2.0 Release: %autorelease Summary: Python library for Busy Bar API License: MIT URL: https://github.com/busy-app/busylib-py # New versions aren't consistently published on PyPi Source: %{url}/archive/refs/tags/%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # Upstream has a `dev` group, but it contains lots of irrelevant dependencies BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-asyncio) %global _description %{expand: A simple and intuitive Python client for interacting with the Busy Bar API. This library allows you to programmatically control the device's display, audio, and assets.} %description %_description %package -n python3-busylib Summary: %{summary} %description -n python3-busylib %_description %prep %autosetup -p1 -n busylib-py-%{version} %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_BUSYLIB="%{version}" %pyproject_buildrequires %build export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_BUSYLIB="%{version}" %pyproject_wheel %install %pyproject_install %pyproject_save_files -l busylib %check %pytest %files -n python3-busylib -f %{pyproject_files} %changelog %autochangelog