python311Packages.qtile-extras: refactor
This commit is contained in:
parent
813b8e0ca2
commit
e8e5011c6e
|
@ -1,50 +1,55 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, setuptools-scm
|
|
||||||
, pytestCheckHook
|
|
||||||
, xorgserver
|
|
||||||
, imagemagick
|
|
||||||
, gobject-introspection
|
, gobject-introspection
|
||||||
|
, gtk3
|
||||||
|
, imagemagick
|
||||||
|
, keyring
|
||||||
|
, librsvg
|
||||||
, pulseaudio
|
, pulseaudio
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, pytest-lazy-fixture
|
, pytest-lazy-fixture
|
||||||
|
, pytestCheckHook
|
||||||
, qtile
|
, qtile
|
||||||
, keyring
|
|
||||||
, requests
|
, requests
|
||||||
, librsvg
|
, setuptools-scm
|
||||||
, gtk3
|
, xorgserver
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "qtile-extras";
|
pname = "qtile-extras";
|
||||||
version = "0.25.0";
|
version = "0.25.0";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "elParaguayo";
|
owner = "elParaguayo";
|
||||||
repo = pname;
|
repo = "qtile-extras";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-OYzSKOVg4D5gKxaEreclYq3D16dl8ddLipSdifokDNY=";
|
hash = "sha256-OYzSKOVg4D5gKxaEreclYq3D16dl8ddLipSdifokDNY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools-scm ];
|
build-system = [
|
||||||
|
setuptools-scm
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
gtk3
|
||||||
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
|
||||||
xorgserver
|
|
||||||
imagemagick
|
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
];
|
imagemagick
|
||||||
checkInputs = [
|
keyring
|
||||||
|
pulseaudio
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
pytest-lazy-fixture
|
pytest-lazy-fixture
|
||||||
|
pytestCheckHook
|
||||||
qtile
|
qtile
|
||||||
pulseaudio
|
|
||||||
keyring
|
|
||||||
requests
|
requests
|
||||||
|
xorgserver
|
||||||
# stravalib # marked as broken due to https://github.com/stravalib/stravalib/issues/379
|
# stravalib # marked as broken due to https://github.com/stravalib/stravalib/issues/379
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# Needs a running DBUS
|
# Needs a running DBUS
|
||||||
"test_brightness_power_saving"
|
"test_brightness_power_saving"
|
||||||
|
@ -55,12 +60,13 @@ buildPythonPackage rec {
|
||||||
"test_wifiicon_internet_check"
|
"test_wifiicon_internet_check"
|
||||||
# Image difference is outside tolerance
|
# Image difference is outside tolerance
|
||||||
"test_decoration_output"
|
"test_decoration_output"
|
||||||
# Needs github token
|
# Needs Github token
|
||||||
"test_githubnotifications_reload_token"
|
"test_githubnotifications_reload_token"
|
||||||
# AttributeError: 'NoneType' object has no attribute 'theta'
|
# AttributeError: 'NoneType' object has no attribute 'theta'
|
||||||
"test_image_size_horizontal"
|
"test_image_size_horizontal"
|
||||||
"test_image_size_vertical"
|
"test_image_size_vertical"
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
# Needs a running DBUS
|
# Needs a running DBUS
|
||||||
"test/widget/test_iwd.py"
|
"test/widget/test_iwd.py"
|
||||||
|
@ -68,16 +74,13 @@ buildPythonPackage rec {
|
||||||
# Marked as broken due to https://github.com/stravalib/stravalib/issues/379
|
# Marked as broken due to https://github.com/stravalib/stravalib/issues/379
|
||||||
"test/widget/test_strava.py"
|
"test/widget/test_strava.py"
|
||||||
];
|
];
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
export GDK_PIXBUF_MODULE_FILE=${librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
|
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
|
sed -i 's#/usr/bin/sleep#sleep#' test/widget/test_snapcast.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
gtk3
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "qtile_extras" ];
|
pythonImportsCheck = [ "qtile_extras" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user