mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
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
|
||||
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; {
|
||||
|
@ -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/";
|
||||
|
Loading…
Reference in New Issue
Block a user