git.iko.soy/typeable/nixpkgs
on master help sign in
mnemosyne: fix application

This application has been missing some dependencies and the correct environment for Qt. Additionally I added a depdency on anki to support the import feature. The project has also moved development to Github, as very briefly mentioned on https://mnemosyne-proj.org/contributing.php but the 2.6.1 version released there seems to differ and causes a bunch of new problems, so leaving it for now.

commitfdefc23f7d8b2660483ad0be132a10c6d4a92df2 authorDima <dgoldin+github@protonmail.ch> dateWed 27 Nov 2019, 21:05 (7 years ago) parent1850d61
2 files changed+17−5
pkgs/development/python-modules/cheroot/default.nix+3−1 pkgs/games/mnemosyne/default.nix+14−4
pkgs/development/python-modules/cheroot/default.nix+3−1
@@ -1,4 +1,4 @@
1−{ stdenv, fetchPypi, buildPythonPackage, pythonAtLeast
1+{ stdenv, fetchPypi, buildPythonPackage, pythonAtLeast, isPy3k
22, more-itertools, six, setuptools_scm, setuptools-scm-git-archive
33, pytest, pytestcov, portend, pytest-testmon, pytest-mock
44, backports_unittest-mock, pyopenssl, requests, trustme, requests-unixsocket
@@ -10,6 +10,8 @@ buildPythonPackage rec {
1010 pname = "cheroot";
1111 version = "8.2.1";
1212
13+ disabled = !isPy3k;
14+
1315 src = fetchPypi {
1416 inherit pname version;
1517 sha256 = "5b525b3e4a755adf78070ab54c1821fb860d4255a9317dba2b88eb2df2441cff";
pkgs/games/mnemosyne/default.nix+14−4
@@ -1,5 +1,6 @@
11{ fetchurl
22, python
3+, anki
34}:
45
56python.pkgs.buildPythonApplication rec {
@@ -11,23 +12,32 @@ python.pkgs.buildPythonApplication rec {
1112 sha256 = "0xcwikq51abrlqfn5bv7kcw1ccd3ip0w6cjd5vnnzwnaqwdj8cb3";
1213 };
1314
15+ nativeBuildInputs = with python.pkgs; [ wrapPython pyqtwebengine.wrapQtAppsHook ];
16+
17+ buildInputs = [ anki ];
18+
1419 propagatedBuildInputs = with python.pkgs; [
20+ pyqtwebengine
1521 pyqt5
1622 matplotlib
1723 cherrypy
1824 cheroot
1925 webob
20− pillow
2126 ];
2227
23− # No tests/ directrory in tarball
24− doCheck = false;
25−
2628 prePatch = ''
2729 substituteInPlace setup.py --replace /usr $out
2830 find . -type f -exec grep -H sys.exec_prefix {} ';' | cut -d: -f1 | xargs sed -i s,sys.exec_prefix,\"$out\",
2931 '';
3032
33+ # No tests/ directrory in tarball
34+ doCheck = false;
35+
36+ dontWrapQtApps = true;
37+ makeWrapperArgs = [
38+ "\${qtWrapperArgs[@]}"
39+ ];
40+
3141 postInstall = ''
3242 mkdir -p $out/share
3343 mv $out/${python.sitePackages}/$out/share/locale $out/share