anki: expression cleanup

This commit is contained in:
Benjamin Hipple 2020-06-20 00:37:43 -04:00 committed by Profpatsch
parent ae56f20b71
commit 0e2d755231

View File

@ -112,16 +112,10 @@ buildPythonApplication rec {
./no-version-check.patch ./no-version-check.patch
]; ];
buildPhase = '' # Anki does not use setup.py
# Dummy build phase dontBuild = true;
# Anki does not use setup.py
'';
postPatch = '' 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. # Remove QT translation files. We'll use the standard QT ones.
rm "locale/"*.qm rm "locale/"*.qm
@ -134,10 +128,10 @@ buildPythonApplication rec {
# UTF-8 locale needed for testing # UTF-8 locale needed for testing
LC_ALL = "en_US.UTF-8"; LC_ALL = "en_US.UTF-8";
# - Anki writes some files to $HOME during tests
# - Skip tests using network
checkPhase = '' checkPhase = ''
# - Anki writes some files to $HOME during tests HOME=$TMP pytest --ignore tests/test_sync.py
# - Skip tests using network
env HOME=$TMP pytest --ignore tests/test_sync.py
''; '';
installPhase = '' installPhase = ''
@ -170,6 +164,7 @@ buildPythonApplication rec {
cp -r ${manual}/share/doc/anki/html $doc/share/doc/anki 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; dontWrapQtApps = true;
preFixup = '' preFixup = ''
@ -179,8 +174,6 @@ buildPythonApplication rec {
) )
''; '';
# now wrapPythonPrograms from postFixup will add both python and qt env variables
passthru = { passthru = {
inherit manual; inherit manual;
}; };