diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2016-10-18 17:59:01 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2016-10-18 23:16:09 +0200 |
commit | 686c52d89724a062d7bf2b03ad71d1464adc4339 (patch) | |
tree | 12a8f99e03ac0728fe72180192cf3a7134eebf85 /pkgs/games/anki | |
parent | e67e4da8c714d03457c25cf7d3d9706fc0d0712a (diff) |
anki: use python2
Diffstat (limited to 'pkgs/games/anki')
-rw-r--r-- | pkgs/games/anki/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/games/anki/default.nix b/pkgs/games/anki/default.nix index cb20bb516c9b..17d80f2e298a 100644 --- a/pkgs/games/anki/default.nix +++ b/pkgs/games/anki/default.nix @@ -1,13 +1,15 @@ { stdenv, lib, fetchurl, substituteAll, lame, mplayer -, libpulseaudio, python, pyqt4, qt4, wrapPython -, pysqlite, sqlalchemy, pyaudio, beautifulsoup, httplib2, matplotlib +, libpulseaudio # 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 +, python2Packages }: let version = "2.0.36"; + inherit (python2Packages) python wrapPython sqlalchemy pyaudio beautifulsoup httplib2 matplotlib pyqt4; + qt4 = pyqt4.qt; in stdenv.mkDerivation rec { name = "anki-${version}"; @@ -19,7 +21,7 @@ stdenv.mkDerivation rec { sha256 = "070p0jmx6cy7kp9bfcgpgkzpyqkcj81wy8gmacns03n5rlq8487v"; }; - pythonPath = [ pyqt4 pysqlite sqlalchemy pyaudio beautifulsoup httplib2 ] + pythonPath = [ pyqt4 sqlalchemy pyaudio beautifulsoup httplib2 ] ++ lib.optional plotsSupport matplotlib; buildInputs = [ python wrapPython lame mplayer libpulseaudio ]; |