anki: fix build on darwin
Runtime doesn't work: ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets' This is probably because qtwebengine is broken on darwin, but doesn't fail the build (#40149)
This commit is contained in:
parent
90c68f650d
commit
d2cfddd3b5
@ -20,6 +20,7 @@
|
|||||||
, glibcLocales
|
, glibcLocales
|
||||||
, nose
|
, nose
|
||||||
, send2trash
|
, send2trash
|
||||||
|
, CoreAudio
|
||||||
# This little flag adds a huge number of dependencies, but we assume that
|
# This little flag adds a huge number of dependencies, but we assume that
|
||||||
# everyone wants Anki to draw plots with statistics by default.
|
# everyone wants Anki to draw plots with statistics by default.
|
||||||
, plotsSupport ? true
|
, plotsSupport ? true
|
||||||
@ -39,9 +40,13 @@ buildPythonApplication rec {
|
|||||||
sha256 = "08wb9hwpmbq7636h7sinim33qygdwwlh3frqqh2gfgm49f46di2p";
|
sha256 = "08wb9hwpmbq7636h7sinim33qygdwwlh3frqqh2gfgm49f46di2p";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pyqt5 sqlalchemy
|
propagatedBuildInputs = [
|
||||||
beautifulsoup4 send2trash pyaudio requests decorator markdown ]
|
pyqt5 sqlalchemy beautifulsoup4 send2trash pyaudio requests decorator
|
||||||
++ lib.optional plotsSupport matplotlib;
|
markdown
|
||||||
|
]
|
||||||
|
++ lib.optional plotsSupport matplotlib
|
||||||
|
++ lib.optional stdenv.isDarwin [ CoreAudio ]
|
||||||
|
;
|
||||||
|
|
||||||
checkInputs = [ pytest glibcLocales nose ];
|
checkInputs = [ pytest glibcLocales nose ];
|
||||||
|
|
||||||
|
@ -20430,7 +20430,9 @@ in
|
|||||||
|
|
||||||
angband = callPackage ../games/angband { };
|
angband = callPackage ../games/angband { };
|
||||||
|
|
||||||
anki = python3Packages.callPackage ../games/anki { };
|
anki = python3Packages.callPackage ../games/anki {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) CoreAudio;
|
||||||
|
};
|
||||||
|
|
||||||
armagetronad = callPackage ../games/armagetronad { };
|
armagetronad = callPackage ../games/armagetronad { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user