Name:           hyfetch
Version:        1.4.11
Release:        %autorelease
Summary:        Customizable Linux System Information Script

License:        MIT
URL:            https://github.com/hykilpikonna/HyFetch
Source0:        %{pypi_source HyFetch}

BuildArch:      noarch
BuildRequires:  python3-devel

%description
HyFetch is a command line script to display information about your
Linux system, such as amount of installed packages, OS and kernel
version, active GTK theme, CPU info, and used/available memory.
It is a fork of neofetch, and adds pride flag coloration to the OS logo.

%prep
%autosetup -p1 -n HyFetch-%{version}

# Remove bundled egg-info
rm -rf HyFetch.egg-info

%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files -l hyfetch

install -pDm 644 hyfetch/scripts/autocomplete.bash %{buildroot}%{bash_completions_dir}/hyfetch
install -pDm 644 hyfetch/scripts/autocomplete.zsh %{buildroot}%{zsh_completions_dir}/_hyfetch

%check
%pyproject_check_import

%files -n hyfetch -f %{pyproject_files}
%{_bindir}/hyfetch
%{_bindir}/neowofetch
%{bash_completions_dir}/hyfetch
%{zsh_completions_dir}/_hyfetch
%changelog
%autochangelog