about summary refs log tree commit diff
path: root/pkgs/development/python-modules/moinmoin/default.nix
blob: b4ecf28724a46efbffe176575cac0406eb651368 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib, buildPythonPackage, fetchurl, isPy3k
, pytest, werkzeug, pygments
}:

buildPythonPackage rec {
  pname = "moinmoin";
  version = "1.9.11";

  # SyntaxError in setup.py
  disabled = isPy3k;

  src = fetchurl {
    url = "http://static.moinmo.in/files/moin-${version}.tar.gz";
    sha256 = "sha256-Ar4x1V851P4MYlPfi0ngG3bQlWNMvRtW0YX2bh4MPPU=";
  };

  patches = [
    # Recommended to install on their download page.
    ./fix_tests.patch
  ];

  prePatch = ''
    sed -i "s/\xfc/ü/" setup.cfg
  '';

  checkInputs = [ pytest werkzeug pygments ];

  meta = with lib; {
    description = "Advanced, easy to use and extensible WikiEngine";

    homepage = "https://moinmo.in/";

    license = licenses.gpl2Plus;
  };
}