at 24.05-pre 1.1 kB view raw
1{ lib, buildPythonPackage, fetchFromGitHub 2, xorgserver, pytest, pytest-xvfb, i3, xlib, xdpyinfo 3, makeFontsConf, coreutils 4}: 5 6buildPythonPackage rec { 7 pname = "i3ipc"; 8 version = "2.2.1"; 9 10 src = fetchFromGitHub { 11 owner = "acrisci"; 12 repo = "i3ipc-python"; 13 rev = "v${version}"; 14 sha256 = "13bzs9dcv27czpnnbgz7a037lm8h991c8gk0qzzk5mq5yak24715"; 15 }; 16 propagatedBuildInputs = [ xlib ]; 17 18 fontsConf = makeFontsConf { 19 fontDirectories = [ ]; 20 }; 21 FONTCONFIG_FILE = fontsConf; # Fontconfig error: Cannot load default config file 22 nativeCheckInputs = [ pytest xdpyinfo pytest-xvfb xorgserver i3 ]; 23 24 postPatch = '' 25 substituteInPlace test/i3.config \ 26 --replace /bin/true ${coreutils}/bin/true 27 ''; 28 29 checkPhase = '' 30 py.test --ignore=test/aio/test_shutdown_event.py \ 31 --ignore=test/test_shutdown_event.py 32 ''; 33 34 35 meta = with lib; { 36 description = "An improved Python library to control i3wm and sway"; 37 homepage = "https://github.com/acrisci/i3ipc-python"; 38 license = licenses.bsd3; 39 maintainers = with maintainers; [ vanzef ]; 40 }; 41}