mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
83aadda3b5
Fixes CVE-2020-25074 and CVE-2020-15275: https://github.com/moinwiki/moin-1.9/blob/1.9.11/docs/CHANGES#L13
36 lines
724 B
Nix
36 lines
724 B
Nix
{ 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;
|
|
};
|
|
}
|