2014-03-25 16:37:05 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
2015-12-17 08:30:02 +00:00
|
|
|
, pythonPackages
|
2014-03-25 16:37:05 +00:00
|
|
|
}:
|
2015-03-10 14:38:59 +00:00
|
|
|
let
|
|
|
|
version = "2.3.2";
|
2016-08-14 10:37:20 +00:00
|
|
|
in pythonPackages.buildPythonApplication rec {
|
2014-03-24 18:55:25 +00:00
|
|
|
name = "mnemosyne-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://sourceforge.net/projects/mnemosyne-proj/files/mnemosyne/${name}/Mnemosyne-${version}.tar.gz";
|
2015-03-10 14:38:59 +00:00
|
|
|
sha256 = "0jkrw45i4v24p6xyq94z7rz5948h7f5dspgs5mcdaslnlp2accfp";
|
2014-03-24 18:55:25 +00:00
|
|
|
};
|
2015-12-17 08:30:02 +00:00
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2014-03-24 18:55:25 +00:00
|
|
|
pyqt4
|
|
|
|
matplotlib
|
|
|
|
cherrypy
|
2015-12-17 08:30:02 +00:00
|
|
|
webob
|
2014-03-24 18:55:25 +00:00
|
|
|
];
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace setup.py --replace /usr $out
|
2014-03-24 19:28:19 +00:00
|
|
|
find . -type f -exec grep -H sys.exec_prefix {} ';' | cut -d: -f1 | xargs sed -i s,sys.exec_prefix,\"$out\",
|
2014-03-24 18:55:25 +00:00
|
|
|
'';
|
2017-02-14 00:40:36 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share
|
|
|
|
mv $out/lib/python2.7/site-packages/$out/share/locale $out/share
|
|
|
|
rm -r $out/lib/python2.7/site-packages/nix
|
|
|
|
'';
|
2014-03-24 18:55:25 +00:00
|
|
|
meta = {
|
2014-11-11 13:20:43 +00:00
|
|
|
homepage = http://mnemosyne-proj.org/;
|
|
|
|
description = "Spaced-repetition software";
|
2014-03-24 18:55:25 +00:00
|
|
|
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
|
2015-03-10 14:38:59 +00:00
|
|
|
software even further.
|
2014-03-24 18:55:25 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|