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

View file

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