about summary refs log tree commit diff
path: root/pkgs/development/python-modules/qemu/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/qemu/default.nix')
-rw-r--r--pkgs/development/python-modules/qemu/default.nix41
1 files changed, 26 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/qemu/default.nix b/pkgs/development/python-modules/qemu/default.nix
index ba730548bca8..9971f254c43e 100644
--- a/pkgs/development/python-modules/qemu/default.nix
+++ b/pkgs/development/python-modules/qemu/default.nix
@@ -1,10 +1,15 @@
-{ lib
-, buildPythonPackage
-, pythonOlder
-, qemu
-, setuptools
-, fuseSupport ? false, fusepy
-, tuiSupport ? false, urwid, urwid-readline, pygments
+{
+  lib,
+  buildPythonPackage,
+  pythonOlder,
+  qemu,
+  setuptools,
+  fuseSupport ? false,
+  fusepy,
+  tuiSupport ? false,
+  urwid,
+  urwid-readline,
+  pygments,
 }:
 
 buildPythonPackage {
@@ -29,13 +34,16 @@ buildPythonPackage {
     fi
   '';
 
-  buildInputs = [
-    setuptools
-  ];
+  buildInputs = [ setuptools ];
 
-  propagatedBuildInputs = [ ]
+  propagatedBuildInputs =
+    [ ]
     ++ lib.optionals fuseSupport [ fusepy ]
-    ++ lib.optionals tuiSupport [ urwid urwid-readline pygments ];
+    ++ lib.optionals tuiSupport [
+      urwid
+      urwid-readline
+      pygments
+    ];
 
   # Project requires avocado-framework for testing, therefore replacing check phase
   checkPhase = ''
@@ -47,10 +55,10 @@ buildPythonPackage {
   pythonImportsCheck = [ "qemu" ];
 
   preFixup =
-    (lib.optionalString (! tuiSupport) ''
+    (lib.optionalString (!tuiSupport) ''
       rm $out/bin/qmp-tui
     '')
-    + (lib.optionalString (! fuseSupport) ''
+    + (lib.optionalString (!fuseSupport) ''
       rm $out/bin/qom-fuse
     '');
 
@@ -58,6 +66,9 @@ buildPythonPackage {
     homepage = "http://www.qemu.org/";
     description = "Python tooling used by the QEMU project to build, configure, and test QEMU";
     license = licenses.gpl2Plus;
-    maintainers = with maintainers; [ devplayer0 davhau ];
+    maintainers = with maintainers; [
+      devplayer0
+      davhau
+    ];
   };
 }