qarte: use pyqt5_with_qtmultimedia
Otherwise, qarte fails at run-time with: > from PyQt5.QtMultimedia import QMediaPlayer > ModuleNotFoundError: No module named 'PyQt5.QtMultimedia'
This commit is contained in:
parent
e063d084de
commit
ef15478313
@ -1,7 +1,7 @@
|
||||
{ mkDerivation, lib, fetchbzr, python3, rtmpdump }:
|
||||
|
||||
let
|
||||
pythonEnv = python3.withPackages (ps: with ps; [ pyqt5 ]);
|
||||
pythonEnv = python3.withPackages (ps: with ps; [ pyqt5_with_qtmultimedia ]);
|
||||
in mkDerivation {
|
||||
name = "qarte-4.6.0";
|
||||
src = fetchbzr {
|
||||
|
@ -6,6 +6,7 @@
|
||||
, qtdeclarative
|
||||
, qtwebchannel
|
||||
, withConnectivity ? false, qtconnectivity
|
||||
, withMultimedia ? false, qtmultimedia
|
||||
, withWebKit ? false, qtwebkit
|
||||
, withWebSockets ? false, qtwebsockets
|
||||
}:
|
||||
@ -50,6 +51,7 @@ in buildPythonPackage rec {
|
||||
qtwebchannel
|
||||
]
|
||||
++ lib.optional withConnectivity qtconnectivity
|
||||
++ lib.optional withMultimedia qtmultimedia
|
||||
++ lib.optional withWebKit qtwebkit
|
||||
++ lib.optional withWebSockets qtwebsockets
|
||||
;
|
||||
@ -121,6 +123,7 @@ in buildPythonPackage rec {
|
||||
]
|
||||
++ lib.optional withWebSockets "PyQt5.QtWebSockets"
|
||||
++ lib.optional withWebKit "PyQt5.QtWebKit"
|
||||
++ lib.optional withMultimedia "PyQt5.QtMultimedia"
|
||||
++ lib.optional withConnectivity "PyQt5.QtConnectivity"
|
||||
;
|
||||
imports = lib.concatMapStrings (module: "import ${module};") modules;
|
||||
|
@ -984,6 +984,8 @@ in {
|
||||
*/
|
||||
pyqt5_with_qtwebkit = self.pyqt5.override { withWebKit = true; };
|
||||
|
||||
pyqt5_with_qtmultimedia = self.pyqt5.override { withMultimedia = true; };
|
||||
|
||||
pyqtwebengine = pkgs.libsForQt5.callPackage ../development/python-modules/pyqtwebengine {
|
||||
pythonPackages = self;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user