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
];
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;
};