mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
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
|
||||
, 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 ];
|
||||
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user