zim: remove postFixup, include checkPhase, disable tests

- wrap-python.nix used to set sys.argv[0] to the name of the script, but
it now sets the path so we won't have to do it here anymore
- tests were not found, so the correct file is now invoked
This commit is contained in:
Frederik Rietdijk 2017-01-01 21:58:27 +01:00
parent d68aba4cfb
commit 21f6cb79a7

View File

@ -30,12 +30,13 @@ pythonPackages.buildPythonApplication rec {
export makeWrapperArgs="--prefix XDG_DATA_DIRS : $out/share --argv0 $out/bin/.zim-wrapped" export makeWrapperArgs="--prefix XDG_DATA_DIRS : $out/share --argv0 $out/bin/.zim-wrapped"
''; '';
postFixup = '' # RuntimeError: could not create GtkClipboard object
substituteInPlace $out/bin/.zim-wrapped \ doCheck = false;
--replace "sys.argv[0] = 'zim'" "sys.argv[0] = '$out/bin/zim'"
checkPhase = ''
python test.py
''; '';
doCheck = true;
meta = { meta = {
description = "A desktop wiki"; description = "A desktop wiki";