2023-03-08 16:32:21 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, python
|
2023-03-08 16:32:21 +00:00
|
|
|
, fetchurl
|
2020-04-24 23:36:52 +00:00
|
|
|
, anki
|
|
|
|
}:
|
|
|
|
|
|
|
|
python.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "mnemosyne";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.10.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/mnemosyne-proj/mnemosyne/mnemosyne-${version}/Mnemosyne-${version}.tar.gz";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-zI79iuRXb5S0Y87KfdG+HKc0XVNQOAcBR7Zt/OdaBP4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with python.pkgs; [ pyqtwebengine.wrapQtAppsHook ];
|
|
|
|
|
|
|
|
buildInputs = [ anki ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
|
|
|
cheroot
|
|
|
|
cherrypy
|
|
|
|
googletrans
|
|
|
|
gtts
|
|
|
|
matplotlib
|
|
|
|
pyopengl
|
2024-01-02 11:29:13 +00:00
|
|
|
pyqt6
|
|
|
|
pyqt6-webengine
|
|
|
|
argon2-cffi
|
2020-04-24 23:36:52 +00:00
|
|
|
webob
|
|
|
|
];
|
|
|
|
|
|
|
|
prePatch = ''
|
2023-03-08 16:32:21 +00:00
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace '("", ["/usr/local/bin/mplayer"])' ""
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
# No tests/ directory in tarball
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
mv mnemosyne.desktop $out/share/applications
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
makeWrapperArgs = [
|
|
|
|
"\${qtWrapperArgs[@]}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://mnemosyne-proj.org/";
|
|
|
|
description = "Spaced-repetition software";
|
|
|
|
longDescription = ''
|
|
|
|
The Mnemosyne Project has two aspects:
|
|
|
|
|
|
|
|
* It's a free flash-card tool which optimizes your learning process.
|
|
|
|
* It's a research project into the nature of long-term memory.
|
|
|
|
|
|
|
|
We strive to provide a clear, uncluttered piece of software, easy to use
|
|
|
|
and to understand for newbies, but still infinitely customisable through
|
|
|
|
plugins and scripts for power users.
|
|
|
|
|
|
|
|
## Efficient learning
|
|
|
|
|
|
|
|
Mnemosyne uses a sophisticated algorithm to schedule the best time for
|
|
|
|
a card to come up for review. Difficult cards that you tend to forget
|
|
|
|
quickly will be scheduled more often, while Mnemosyne won't waste your
|
|
|
|
time on things you remember well.
|
|
|
|
|
|
|
|
## Memory research
|
|
|
|
|
|
|
|
If you want, anonymous statistics on your learning process can be
|
|
|
|
uploaded to a central server for analysis. This data will be valuable to
|
|
|
|
study the behaviour of our memory over a very long time period. The
|
|
|
|
results will be used to improve the scheduling algorithms behind the
|
|
|
|
software even further.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|