Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 xorg, 6 pytest, 7 pytest-xvfb, 8 i3, 9 xlib, 10 xdpyinfo, 11 makeFontsConf, 12 coreutils, 13}: 14 15buildPythonPackage rec { 16 pname = "i3ipc"; 17 version = "2.2.1"; 18 format = "setuptools"; 19 20 src = fetchFromGitHub { 21 owner = "acrisci"; 22 repo = "i3ipc-python"; 23 rev = "v${version}"; 24 sha256 = "13bzs9dcv27czpnnbgz7a037lm8h991c8gk0qzzk5mq5yak24715"; 25 }; 26 propagatedBuildInputs = [ xlib ]; 27 28 fontsConf = makeFontsConf { fontDirectories = [ ]; }; 29 FONTCONFIG_FILE = fontsConf; # Fontconfig error: Cannot load default config file 30 nativeCheckInputs = [ 31 pytest 32 xdpyinfo 33 pytest-xvfb 34 xorg.xvfb 35 i3 36 ]; 37 38 postPatch = '' 39 substituteInPlace test/i3.config \ 40 --replace /bin/true ${coreutils}/bin/true 41 ''; 42 43 checkPhase = '' 44 py.test --ignore=test/aio/test_shutdown_event.py \ 45 --ignore=test/test_shutdown_event.py 46 ''; 47 48 meta = with lib; { 49 description = "Improved Python library to control i3wm and sway"; 50 homepage = "https://github.com/acrisci/i3ipc-python"; 51 license = licenses.bsd3; 52 maintainers = with maintainers; [ vanzef ]; 53 }; 54}