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:
Dmitry Kalinkin 2019-01-05 18:51:25 -05:00
parent 90c68f650d
commit d2cfddd3b5
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333
2 changed files with 11 additions and 4 deletions

View File

@ -20,6 +20,7 @@
, glibcLocales
, nose
, send2trash
, CoreAudio
# This little flag adds a huge number of dependencies, but we assume that
# everyone wants Anki to draw plots with statistics by default.
, plotsSupport ? true
@ -39,9 +40,13 @@ buildPythonApplication rec {
sha256 = "08wb9hwpmbq7636h7sinim33qygdwwlh3frqqh2gfgm49f46di2p";
};
propagatedBuildInputs = [ pyqt5 sqlalchemy
beautifulsoup4 send2trash pyaudio requests decorator markdown ]
++ lib.optional plotsSupport matplotlib;
propagatedBuildInputs = [
pyqt5 sqlalchemy beautifulsoup4 send2trash pyaudio requests decorator
markdown
]
++ lib.optional plotsSupport matplotlib
++ lib.optional stdenv.isDarwin [ CoreAudio ]
;
checkInputs = [ pytest glibcLocales nose ];

View File

@ -20430,7 +20430,9 @@ in
angband = callPackage ../games/angband { };
anki = python3Packages.callPackage ../games/anki { };
anki = python3Packages.callPackage ../games/anki {
inherit (darwin.apple_sdk.frameworks) CoreAudio;
};
armagetronad = callPackage ../games/armagetronad { };