Merge pull request #84954 from unode/master
mnemosyne: Fix Qt related segfault and OpenGL warning
This commit is contained in:
commit
64e9b709de
|
@ -44,7 +44,11 @@ buildPythonPackage rec {
|
||||||
# Disable doctest plugin because times out
|
# Disable doctest plugin because times out
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
substituteInPlace pytest.ini --replace "--doctest-modules" ""
|
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; {
|
meta = with stdenv.lib; {
|
||||||
|
|
|
@ -12,18 +12,19 @@ python.pkgs.buildPythonApplication rec {
|
||||||
sha256 = "0dhvg9cxc6m6kzk75h363h1g0bl80cqz11cijh0zpz9f4w6lnqsq";
|
sha256 = "0dhvg9cxc6m6kzk75h363h1g0bl80cqz11cijh0zpz9f4w6lnqsq";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with python.pkgs; [ wrapPython pyqtwebengine.wrapQtAppsHook ];
|
nativeBuildInputs = with python.pkgs; [ pyqtwebengine.wrapQtAppsHook ];
|
||||||
|
|
||||||
buildInputs = [ anki ];
|
buildInputs = [ anki ];
|
||||||
|
|
||||||
propagatedBuildInputs = with python.pkgs; [
|
propagatedBuildInputs = with python.pkgs; [
|
||||||
|
cheroot
|
||||||
|
cherrypy
|
||||||
googletrans
|
googletrans
|
||||||
gtts
|
gtts
|
||||||
pyqtwebengine
|
|
||||||
pyqt5
|
|
||||||
matplotlib
|
matplotlib
|
||||||
cherrypy
|
pyopengl
|
||||||
cheroot
|
pyqt5
|
||||||
|
pyqtwebengine
|
||||||
webob
|
webob
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -36,16 +37,17 @@ python.pkgs.buildPythonApplication rec {
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share
|
mkdir -p $out/share/applications
|
||||||
mv $out/${python.sitePackages}/$out/share/locale $out/share
|
mv $out/${python.sitePackages}/$out/share/locale $out/share
|
||||||
|
mv mnemosyne.desktop $out/share/applications
|
||||||
rm -r $out/${python.sitePackages}/nix
|
rm -r $out/${python.sitePackages}/nix
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontWrapQtApps = true;
|
dontWrapQtApps = true;
|
||||||
|
|
||||||
preFixup = ''
|
makeWrapperArgs = [
|
||||||
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
"\${qtWrapperArgs[@]}"
|
||||||
'';
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://mnemosyne-proj.org/";
|
homepage = "https://mnemosyne-proj.org/";
|
||||||
|
|
Loading…
Reference in New Issue