summaryrefslogtreecommitdiffstats
path: root/pkgs/games/anki
diff options
context:
space:
mode:
authorBenjamin Hipple <bhipple@protonmail.com>2020-06-20 00:37:43 -0400
committerProfpatsch <mail@profpatsch.de>2020-07-01 04:29:09 +0200
commit0e2d75523115a078d4e76b14015774bac60234d3 (patch)
treed4903b8cbdffbd88bded882599770a35484991ce /pkgs/games/anki
parentae56f20b71c70c165c0d2ee9c667eb0ac0bec37f (diff)
anki: expression cleanup
Diffstat (limited to 'pkgs/games/anki')
-rw-r--r--pkgs/games/anki/default.nix19
1 files changed, 6 insertions, 13 deletions
diff --git a/pkgs/games/anki/default.nix b/pkgs/games/anki/default.nix
index 5eaf9f1d332e..0d713b1f71e1 100644
--- a/pkgs/games/anki/default.nix
+++ b/pkgs/games/anki/default.nix
@@ -112,16 +112,10 @@ buildPythonApplication rec {
./no-version-check.patch
];
- buildPhase = ''
- # Dummy build phase
- # Anki does not use setup.py
- '';
+ # Anki does not use setup.py
+ dontBuild = true;
postPatch = ''
- # Remove unused starter. We'll create our own, minimalistic,
- # starter.
- # rm anki/anki
-
# Remove QT translation files. We'll use the standard QT ones.
rm "locale/"*.qm
@@ -134,10 +128,10 @@ buildPythonApplication rec {
# UTF-8 locale needed for testing
LC_ALL = "en_US.UTF-8";
+ # - Anki writes some files to $HOME during tests
+ # - Skip tests using network
checkPhase = ''
- # - Anki writes some files to $HOME during tests
- # - Skip tests using network
- env HOME=$TMP pytest --ignore tests/test_sync.py
+ HOME=$TMP pytest --ignore tests/test_sync.py
'';
installPhase = ''
@@ -170,6 +164,7 @@ buildPythonApplication rec {
cp -r ${manual}/share/doc/anki/html $doc/share/doc/anki
'';
+ # now wrapPythonPrograms from postFixup will add both python and qt env variables
dontWrapQtApps = true;
preFixup = ''
@@ -179,8 +174,6 @@ buildPythonApplication rec {
)
'';
- # now wrapPythonPrograms from postFixup will add both python and qt env variables
-
passthru = {
inherit manual;
};