Merge pull request #84954 from unode/master

mnemosyne: Fix Qt related segfault and OpenGL warning
This commit is contained in:
Michele Guerini Rocco 2020-04-13 12:56:14 +02:00 committed by GitHub
commit 64e9b709de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 10 deletions

View File

@ -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; {

View File

@ -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
];
@ -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/";