Skip to content

Commit

Permalink
Merge pull request #84954 from unode/master
Browse files Browse the repository at this point in the history
mnemosyne: Fix Qt related segfault and OpenGL warning
  • Loading branch information
rnhmjoj committed Apr 13, 2020
2 parents 9e2a52f + af17bae commit 64e9b70
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
6 changes: 5 additions & 1 deletion pkgs/development/python-modules/cherrypy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ buildPythonPackage rec {
# Disable doctest plugin because times out
checkPhase = ''
substituteInPlace pytest.ini --replace "--doctest-modules" ""
pytest --deselect=cherrypy/test/test_static.py::StaticTest::test_null_bytes ${stdenv.lib.optionalString stdenv.isDarwin "--deselect=cherrypy/test/test_bus.py::BusMethodTests::test_block"}
pytest \
--deselect=cherrypy/test/test_static.py::StaticTest::test_null_bytes \
--deselect=cherrypy/test/test_tools.py::ToolTests::testCombinedTools \
${stdenv.lib.optionalString stdenv.isDarwin
"--deselect=cherrypy/test/test_bus.py::BusMethodTests::test_block"}
'';

meta = with stdenv.lib; {
Expand Down
20 changes: 11 additions & 9 deletions pkgs/games/mnemosyne/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@ python.pkgs.buildPythonApplication rec {
sha256 = "0dhvg9cxc6m6kzk75h363h1g0bl80cqz11cijh0zpz9f4w6lnqsq";
};

nativeBuildInputs = with python.pkgs; [ wrapPython pyqtwebengine.wrapQtAppsHook ];
nativeBuildInputs = with python.pkgs; [ pyqtwebengine.wrapQtAppsHook ];

buildInputs = [ anki ];

propagatedBuildInputs = with python.pkgs; [
cheroot
cherrypy
googletrans
gtts
pyqtwebengine
pyqt5
matplotlib
cherrypy
cheroot
pyopengl
pyqt5
pyqtwebengine
webob
];

Expand All @@ -36,16 +37,17 @@ python.pkgs.buildPythonApplication rec {
doCheck = false;

postInstall = ''
mkdir -p $out/share
mkdir -p $out/share/applications
mv $out/${python.sitePackages}/$out/share/locale $out/share
mv mnemosyne.desktop $out/share/applications
rm -r $out/${python.sitePackages}/nix
'';

dontWrapQtApps = true;

preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
makeWrapperArgs = [
"\${qtWrapperArgs[@]}"
];

meta = {
homepage = "https://mnemosyne-proj.org/";
Expand Down

0 comments on commit 64e9b70

Please sign in to comment.