mnemosyne: 2.3.2 -> 2.6
This commit is contained in:
parent
b5ecdfa977
commit
d440ffab7d
|
@ -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";
|
||||||
|
|
|
@ -18489,7 +18489,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 { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue