1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

Merge pull request #282869 from arjan-s/bump-qtile-extras

python3Packages.qtile-extras: 0.23.0 -> 0.24.0
This commit is contained in:
maxine 2024-01-25 10:49:52 +01:00 committed by GitHub
commit eb1e89748b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,25 +5,27 @@
, pytestCheckHook
, xorgserver
, imagemagick
, gobject-introspection
, pulseaudio
, pytest-asyncio
, pytest-lazy-fixture
, qtile
, keyring
, requests
, stravalib
, librsvg
, gtk3
}:
buildPythonPackage rec {
pname = "qtile-extras";
version = "0.23.0";
version = "0.24.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "elParaguayo";
repo = pname;
rev = "v${version}";
hash = "sha256-WI1z8vrbZiJw6fDHK27mKA+1FyZEQTMttIDNzSIX+PU=";
hash = "sha256-DJmnJcqhfCfl39SF3Ypv0PGtI4r8heaVv9JmpiCBGJo=";
};
nativeBuildInputs = [ setuptools-scm ];
@ -32,6 +34,7 @@ buildPythonPackage rec {
pytestCheckHook
xorgserver
imagemagick
gobject-introspection
];
checkInputs = [
pytest-asyncio
@ -40,59 +43,41 @@ buildPythonPackage rec {
pulseaudio
keyring
requests
stravalib
# stravalib # marked as broken due to https://github.com/stravalib/stravalib/issues/379
];
disabledTests = [
# AttributeError: 'ImgMask' object has no attribute '_default_size'. Did you mean: 'default_size'?
# cairocffi.pixbuf.ImageLoadingError: Pixbuf error: Unrecognized image file format
"test_draw"
"test_icons"
"1-x11-GithubNotifications-kwargs3"
"1-x11-SnapCast-kwargs8"
"1-x11-TVHWidget-kwargs10"
"test_tvh_widget_not_recording"
"test_tvh_widget_recording"
"test_tvh_widget_popup"
"test_snapcast_options"
"test_snapcast_icon"
"test_snapcast_icon_colour"
"test_snapcast_http_error"
"test_syncthing_not_syncing"
"test_syncthing_is_syncing"
"test_syncthing_http_error"
"test_githubnotifications_colours"
"test_githubnotifications_logging"
"test_githubnotifications_icon"
"test_githubnotifications_reload_token"
"test_image_size_horizontal"
"test_image_size_vertical"
"test_image_size_mask"
# ValueError: Namespace Gdk not available
# AssertionError: Window never appeared...
"test_statusnotifier_menu"
# AttributeError: 'str' object has no attribute 'canonical'
"test_strava_widget_display"
"test_strava_widget_popup"
# Needs a running DBUS
"test_brightness_power_saving"
"test_upower_all_batteries"
"test_upower_named_battery"
"test_upower_low_battery"
"test_upower_critical_battery"
"test_upower_charging"
"test_upower_show_text"
"test_global_menu"
"test_mpris2_popup"
"test_statusnotifier_menu"
# No network connection
"test_wifiicon_internet_check"
# AssertionErrors
"test_widget_init_config"
# Image difference is outside tolerance
"test_decoration_output"
# Needs github token
"test_githubnotifications_reload_token"
# AttributeError: 'NoneType' object has no attribute 'theta'
"test_image_size_horizontal"
"test_image_size_vertical"
];
disabledTestPaths = [
# Needs a running DBUS
"test/widget/test_iwd.py"
"test/widget/test_upower.py"
# Marked as broken due to https://github.com/stravalib/stravalib/issues/379
"test/widget/test_strava.py"
];
preCheck = ''
export HOME=$(mktemp -d)
export GDK_PIXBUF_MODULE_FILE=${librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
sed -i 's#/usr/bin/sleep#sleep#' test/widget/test_snapcast.py
'';
propagatedBuildInputs = [
gtk3
];
pythonImportsCheck = [ "qtile_extras" ];
meta = with lib; {