From f6889aa21e99b9bb729ce457cf9558713ab43ad7 Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Sat, 11 Apr 2020 01:13:08 +0200 Subject: [PATCH 1/4] mnemosyne: Fix 'Could not find Qt' segfault --- pkgs/games/mnemosyne/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/games/mnemosyne/default.nix b/pkgs/games/mnemosyne/default.nix index 38763073ac8..ca4ca3c1f10 100644 --- a/pkgs/games/mnemosyne/default.nix +++ b/pkgs/games/mnemosyne/default.nix @@ -12,7 +12,7 @@ python.pkgs.buildPythonApplication rec { sha256 = "0dhvg9cxc6m6kzk75h363h1g0bl80cqz11cijh0zpz9f4w6lnqsq"; }; - nativeBuildInputs = with python.pkgs; [ wrapPython pyqtwebengine.wrapQtAppsHook ]; + nativeBuildInputs = with python.pkgs; [ pyqtwebengine.wrapQtAppsHook ]; buildInputs = [ anki ]; @@ -43,9 +43,9 @@ python.pkgs.buildPythonApplication rec { dontWrapQtApps = true; - preFixup = '' - makeWrapperArgs+=("''${qtWrapperArgs[@]}") - ''; + makeWrapperArgs = [ + "\${qtWrapperArgs[@]}" + ]; meta = { homepage = "https://mnemosyne-proj.org/"; From 4ea30958a83e39ef65682875069dbc1d330b31cd Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Sat, 11 Apr 2020 01:46:57 +0200 Subject: [PATCH 2/4] mnemosyne: Add pyopengl to silence OpenGL warning --- pkgs/games/mnemosyne/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/games/mnemosyne/default.nix b/pkgs/games/mnemosyne/default.nix index ca4ca3c1f10..46e8ea9a846 100644 --- a/pkgs/games/mnemosyne/default.nix +++ b/pkgs/games/mnemosyne/default.nix @@ -17,13 +17,14 @@ python.pkgs.buildPythonApplication rec { buildInputs = [ anki ]; propagatedBuildInputs = with python.pkgs; [ + cheroot + cherrypy googletrans gtts - pyqtwebengine - pyqt5 matplotlib - cherrypy - cheroot + pyopengl + pyqt5 + pyqtwebengine webob ]; From f5814e2075fac1592d0d22110304ed6d5efd1227 Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Sat, 11 Apr 2020 02:16:16 +0200 Subject: [PATCH 3/4] mnemosyne: Install mnemosyne.desktop --- pkgs/games/mnemosyne/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/games/mnemosyne/default.nix b/pkgs/games/mnemosyne/default.nix index 46e8ea9a846..44bd396e9fa 100644 --- a/pkgs/games/mnemosyne/default.nix +++ b/pkgs/games/mnemosyne/default.nix @@ -37,8 +37,9 @@ 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 ''; From af17bae209c857b48c6ff1b5756628de6f8ebc20 Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Mon, 13 Apr 2020 12:32:01 +0200 Subject: [PATCH 4/4] pythonPackages.cherrypy: disable failing test --- pkgs/development/python-modules/cherrypy/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/cherrypy/default.nix b/pkgs/development/python-modules/cherrypy/default.nix index e37f2cb470e..778f57e0f9b 100644 --- a/pkgs/development/python-modules/cherrypy/default.nix +++ b/pkgs/development/python-modules/cherrypy/default.nix @@ -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; {