about summary refs log tree commit diff
path: root/pkgs/development/python-modules/i3ipc/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/i3ipc/default.nix')
-rw-r--r--pkgs/development/python-modules/i3ipc/default.nix40
1 files changed, 26 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/i3ipc/default.nix b/pkgs/development/python-modules/i3ipc/default.nix
index 5aca692cbe05..febac35bc4a4 100644
--- a/pkgs/development/python-modules/i3ipc/default.nix
+++ b/pkgs/development/python-modules/i3ipc/default.nix
@@ -1,6 +1,15 @@
-{ lib, buildPythonPackage, fetchFromGitHub
-, xorgserver, pytest, pytest-xvfb, i3, xlib, xdpyinfo
-, makeFontsConf, coreutils
+{
+  lib,
+  buildPythonPackage,
+  fetchFromGitHub,
+  xorg,
+  pytest,
+  pytest-xvfb,
+  i3,
+  xlib,
+  xdpyinfo,
+  makeFontsConf,
+  coreutils,
 }:
 
 buildPythonPackage rec {
@@ -9,18 +18,22 @@ buildPythonPackage rec {
   format = "setuptools";
 
   src = fetchFromGitHub {
-    owner  = "acrisci";
-    repo   = "i3ipc-python";
-    rev    = "v${version}";
+    owner = "acrisci";
+    repo = "i3ipc-python";
+    rev = "v${version}";
     sha256 = "13bzs9dcv27czpnnbgz7a037lm8h991c8gk0qzzk5mq5yak24715";
   };
   propagatedBuildInputs = [ xlib ];
 
-  fontsConf = makeFontsConf {
-    fontDirectories = [ ];
-  };
+  fontsConf = makeFontsConf { fontDirectories = [ ]; };
   FONTCONFIG_FILE = fontsConf; # Fontconfig error: Cannot load default config file
-  nativeCheckInputs = [ pytest xdpyinfo pytest-xvfb xorgserver i3 ];
+  nativeCheckInputs = [
+    pytest
+    xdpyinfo
+    pytest-xvfb
+    xorg.xvfb
+    i3
+  ];
 
   postPatch = ''
     substituteInPlace test/i3.config \
@@ -32,11 +45,10 @@ buildPythonPackage rec {
             --ignore=test/test_shutdown_event.py
   '';
 
-
   meta = with lib; {
-    description = "An improved Python library to control i3wm and sway";
-    homepage    = "https://github.com/acrisci/i3ipc-python";
-    license     = licenses.bsd3;
+    description = "Improved Python library to control i3wm and sway";
+    homepage = "https://github.com/acrisci/i3ipc-python";
+    license = licenses.bsd3;
     maintainers = with maintainers; [ vanzef ];
   };
 }