20f5d36
%bcond_without test
8384932
02ee32a
Name:           py3status
c5e4919
Version:        3.57
bf0ed80
Release:        %autorelease
20f5d36
Summary:        An extensible i3status wrapper written in python
02ee32a
a56ecde
License:        BSD-3-Clause
02ee32a
URL:            https://github.com/ultrabug/py3status
02ee32a
Source0:        https://github.com/ultrabug/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
02ee32a
02ee32a
BuildArch:      noarch
02ee32a
BuildRequires:  python3-devel
02ee32a
BuildRequires:  python3-setuptools
02ee32a
%if %{with test}
9f2b53d
BuildRequires:  python3-pytest
20f5d36
%endif
02ee32a
Requires:       i3status
20f5d36
Obsoletes:      %{name}-doc < 3.44-1
8384932
8384932
%description
8384932
Using py3status, you can take control of your i3bar easily by:
8384932
- writing your own modules and have their output displayed on your bar
8384932
- handling click events on your i3bar and play with them in no time
8384932
- seeing your clock tick every second whatever your i3status interval
8384932
No extra configuration file needed, just install & enjoy !
8384932
1ce243c
%pyproject_extras_subpkg -n %{name} dbus
9f2b53d
%pyproject_extras_subpkg -n %{name} udev
02ee32a
8384932
%prep
20f5d36
%setup -q -n %{name}-%{version}
e47b508
# allow upwards dependency matches
e47b508
sed -i -e 's/dbus-python\s*==\s*/dbus-python >= /' pyproject.toml
e47b508
sed -i -e 's/PyGObject\s*==\s*/PyGObject >= /' pyproject.toml
8384932
9f2b53d
%generate_buildrequires
ef55a1f
%pyproject_buildrequires
9f2b53d
8384932
%build
9f2b53d
%pyproject_wheel
8384932
8384932
%install
9f2b53d
%pyproject_install
9f2b53d
9f2b53d
%pyproject_save_files %{name}
8384932
02ee32a
%if %{with test}
02ee32a
%check
ef55a1f
%pytest
20f5d36
%endif
02ee32a
9f2b53d
%files -f %{pyproject_files}
3aea566
%license LICENSE
20f5d36
%doc README.md CHANGELOG
02ee32a
%{_bindir}/py3-cmd
8384932
%{_bindir}/py3status
8384932
8384932
%changelog
bf0ed80
%autochangelog