bumblebee-status: update to 2.1.4.

This commit is contained in:
Arda Demir 2021-07-12 10:11:12 +03:00 committed by Érico Nogueira Rolim
parent ea8f486c28
commit f7c2793f6d

View file

@ -1,24 +1,31 @@
# Template file for 'bumblebee-status'
pkgname=bumblebee-status
version=2.1.2
version=2.1.4
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-netifaces python3-psutil python3-requests"
checkdepends="python3-pytest python3-pytest-mock python3-freezegun $depends"
short_desc="Modular, theme-able status line generator for the i3 window manager"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/tobi-wan-kenobi/bumblebee-status"
distfiles="$PYPI_SITE/b/bumblebee-status/bumblebee-status-$version.tar.gz
https://raw.githubusercontent.com/tobi-wan-kenobi/bumblebee-status/v$version/LICENSE"
checksum="c0cfd4e795c12a11d37eabb2801dc9e295af92faf3d0eef8a65b8bb7ea8492c2
checksum="8dcd8ae54b1d66a2b337c1197014dcd32d83134d4699a0cae028bd5da777fa71
7cf86a994584e9e1bfe64c63f4e4b9d9bf757148d7ee2af960a267e79b16eab3"
skip_extraction=LICENSE
do_check() {
# fail on musl due to lack of locales
if [ "$XBPS_TARGET_LIBC" = musl ]; then
python3 -m pytest -k "not test_date and not test_time"
else
python3 -m pytest
fi
}
post_patch() {
vsed -i '
s|os.path.*THEME_BASE_DIR.*|"/usr/share/bumblebee-status/themes",|
' bumblebee_status/core/theme.py
vsed -i '/usr.share.bumblebee-status/s/bin/utility/' bumblebee_status/discover.py
}