python311Packages.qtile-extras: refactor
This commit is contained in:
parent
813b8e0ca2
commit
e8e5011c6e
|
@ -1,50 +1,55 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, setuptools-scm
|
||||
, pytestCheckHook
|
||||
, xorgserver
|
||||
, imagemagick
|
||||
, gobject-introspection
|
||||
, gtk3
|
||||
, imagemagick
|
||||
, keyring
|
||||
, librsvg
|
||||
, pulseaudio
|
||||
, pytest-asyncio
|
||||
, pytest-lazy-fixture
|
||||
, pytestCheckHook
|
||||
, qtile
|
||||
, keyring
|
||||
, requests
|
||||
, librsvg
|
||||
, gtk3
|
||||
, setuptools-scm
|
||||
, xorgserver
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "qtile-extras";
|
||||
version = "0.25.0";
|
||||
format = "pyproject";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "elParaguayo";
|
||||
repo = pname;
|
||||
repo = "qtile-extras";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-OYzSKOVg4D5gKxaEreclYq3D16dl8ddLipSdifokDNY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
build-system = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
gtk3
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
xorgserver
|
||||
imagemagick
|
||||
gobject-introspection
|
||||
];
|
||||
checkInputs = [
|
||||
imagemagick
|
||||
keyring
|
||||
pulseaudio
|
||||
pytest-asyncio
|
||||
pytest-lazy-fixture
|
||||
pytestCheckHook
|
||||
qtile
|
||||
pulseaudio
|
||||
keyring
|
||||
requests
|
||||
xorgserver
|
||||
# stravalib # marked as broken due to https://github.com/stravalib/stravalib/issues/379
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Needs a running DBUS
|
||||
"test_brightness_power_saving"
|
||||
|
@ -55,12 +60,13 @@ buildPythonPackage rec {
|
|||
"test_wifiicon_internet_check"
|
||||
# Image difference is outside tolerance
|
||||
"test_decoration_output"
|
||||
# Needs github token
|
||||
# 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"
|
||||
|
@ -68,16 +74,13 @@ buildPythonPackage rec {
|
|||
# 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; {
|
||||
|
|
Loading…
Reference in New Issue