1{ lib, buildPythonPackage, fetchurl, fetchpatch, isPy3k 2, pytest, werkzeug, pygments 3}: 4 5buildPythonPackage rec { 6 pname = "moinmoin"; 7 version = "1.9.9"; 8 9 # SyntaxError in setup.py 10 disabled = isPy3k; 11 12 src = fetchurl { 13 url = "http://static.moinmo.in/files/moin-${version}.tar.gz"; 14 sha256 = "197ga41qghykmir80ik17f9hjpmixslv3zjgj7bj9qvs1dvdg5s3"; 15 }; 16 17 patches = [ 18 # Recommended to install on their download page. 19 (fetchpatch { 20 url = "https://bitbucket.org/thomaswaldmann/moin-1.9/commits/561b7a9c2bd91b61d26cd8a5f39aa36bf5c6159e/raw"; 21 sha256 = "1nscnl9nspnrwyf3n95ig0ihzndryinq9kkghliph6h55cncfc65"; 22 }) 23 ./fix_tests.patch 24 ]; 25 26 checkInputs = [ pytest werkzeug pygments ]; 27 28 meta = with lib; { 29 description = "Advanced, easy to use and extensible WikiEngine"; 30 31 homepage = "https://moinmo.in/"; 32 33 license = licenses.gpl2Plus; 34 }; 35}