20f5d36
%bcond_without test
8384932
02ee32a
Name:           py3status
e4f0abd
Version:        3.49
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}
b8d2a72
BuildRequires:  python3-tox python3-tox-current-env 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
02ee32a
8384932
%prep
20f5d36
%setup -q -n %{name}-%{version}
8384932
8384932
%build
3aea566
%py3_build
8384932
8384932
%install
3aea566
%py3_install
8384932
02ee32a
%if %{with test}
02ee32a
%check
b8d2a72
# disable linters
b8d2a72
sed -i -e '/{envbindir}\/black/d' -e 's/pytest --flake8/pytest/' tox.ini
b8d2a72
# test in install environment
20f5d36
sed -i -e 's#{envbindir}/##' tox.ini
20f5d36
%tox
20f5d36
%endif
02ee32a
8384932
%files
3aea566
%license LICENSE
20f5d36
%doc README.md CHANGELOG
02ee32a
%{_bindir}/py3-cmd
8384932
%{_bindir}/py3status
3aea566
%dir %{python3_sitelib}/py3status
3aea566
%{python3_sitelib}/py3status/*
3aea566
%{python3_sitelib}/*.egg-info
8384932
8384932
8384932
%changelog
bf0ed80
%autochangelog