Merge pull request #32799 from dotlambda/mnemosyne

mnemosyne: 2.3.2 -> 2.6
This commit is contained in:
Frederik Rietdijk 2018-02-14 19:48:29 +00:00 committed by GitHub
commit 9b9eeb53e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 13 deletions

View File

@ -1,30 +1,40 @@
{ stdenv
, fetchurl
, pythonPackages
, python
}:
let
version = "2.3.2";
in pythonPackages.buildPythonApplication rec {
name = "mnemosyne-${version}";
python.pkgs.buildPythonApplication rec {
pname = "mnemosyne";
version = "2.6";
src = fetchurl {
url = "http://sourceforge.net/projects/mnemosyne-proj/files/mnemosyne/${name}/Mnemosyne-${version}.tar.gz";
sha256 = "0jkrw45i4v24p6xyq94z7rz5948h7f5dspgs5mcdaslnlp2accfp";
url = "mirror://sourceforge/project/mnemosyne-proj/mnemosyne/mnemosyne-${version}/Mnemosyne-${version}.tar.gz";
sha256 = "0b7b5sk5bfbsg5cyybkv5xw9zw257v3khsn0lwlbxnlhakd0rsg4";
};
propagatedBuildInputs = with pythonPackages; [
pyqt4
propagatedBuildInputs = with python.pkgs; [
pyqt5
matplotlib
cherrypy
cheroot
webob
pillow
];
preConfigure = ''
# No tests/ directrory in tarball
doCheck = false;
prePatch = ''
substituteInPlace setup.py --replace /usr $out
find . -type f -exec grep -H sys.exec_prefix {} ';' | cut -d: -f1 | xargs sed -i s,sys.exec_prefix,\"$out\",
'';
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
mv $out/${python.sitePackages}/$out/share/locale $out/share
rm -r $out/${python.sitePackages}/nix
'';
meta = {
homepage = https://mnemosyne-proj.org/;
description = "Spaced-repetition software";

View File

@ -18567,7 +18567,9 @@ with pkgs;
libpng = libpng12;
};
mnemosyne = callPackage ../games/mnemosyne { };
mnemosyne = callPackage ../games/mnemosyne {
python = python3;
};
mrrescue = callPackage ../games/mrrescue { };