diff --git a/pkgs/development/python-modules/qemu/default.nix b/pkgs/development/python-modules/qemu/default.nix index bf3901980fc4..0b05055b31e6 100644 --- a/pkgs/development/python-modules/qemu/default.nix +++ b/pkgs/development/python-modules/qemu/default.nix @@ -5,10 +5,7 @@ setuptools, fuseSupport ? false, fusepy, - tuiSupport ? false, - urwid, - urwid-readline, - pygments, + qemu-qmp, }: buildPythonPackage { @@ -31,18 +28,12 @@ buildPythonPackage { fi ''; - buildInputs = [ setuptools ]; + build-system = [ setuptools ]; - propagatedBuildInputs = - [ ] - ++ lib.optionals fuseSupport [ fusepy ] - ++ lib.optionals tuiSupport [ - urwid - urwid-readline - pygments - ]; + dependencies = [ qemu-qmp ] ++ lib.optionals fuseSupport [ fusepy ]; - # Project requires avocado-framework for testing, therefore replacing check phase + # Project now uses pytest instead of avocado-framework for testing but does not perform functional testing. + # let's keep it this way. checkPhase = '' for bin in $out/bin/*; do $bin --help @@ -51,13 +42,11 @@ buildPythonPackage { pythonImportsCheck = [ "qemu" ]; - preFixup = - (lib.optionalString (!tuiSupport) '' - rm $out/bin/qmp-tui - '') - + (lib.optionalString (!fuseSupport) '' + preFixup = ( + lib.optionalString (!fuseSupport) '' rm $out/bin/qom-fuse - ''); + '' + ); meta = { homepage = "https://www.qemu.org/"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 73ab09a75de3..ff6eb81a671b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9255,7 +9255,6 @@ with pkgs; qemu-python-utils = python3Packages.toPythonApplication ( python3Packages.qemu.override { fuseSupport = true; - tuiSupport = true; } );