diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2019-01-05 18:51:25 -0500 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2019-01-05 19:13:10 -0500 |
commit | d2cfddd3b593922c97650455a67a75454cf2382e (patch) | |
tree | 48d117b2477ba5a50d1714cb34aa0bcf5c19cc99 /pkgs/games/anki | |
parent | 90c68f650d1c7d187c30505b820af2796af75f67 (diff) |
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)
Diffstat (limited to 'pkgs/games/anki')
-rw-r--r-- | pkgs/games/anki/default.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/games/anki/default.nix b/pkgs/games/anki/default.nix index 6dd4473a3e7f9..ad202c6ad8cc9 100644 --- a/pkgs/games/anki/default.nix +++ b/pkgs/games/anki/default.nix @@ -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 ]; |