1{ lib 2, buildPythonPackage 3, fetchurl 4, bottle 5, isPy3k 6}: 7 8buildPythonPackage rec { 9 pname = "grammalecte"; 10 version = "0.6.1"; 11 12 src = fetchurl { 13 url = "http://www.dicollecte.org/grammalecte/zip/Grammalecte-fr-v${version}.zip"; 14 sha256 = "0y2ck6pkd2p3cbjlxxvz3x5rnbg3ghfx97n13302rnab66cy4zkh"; 15 }; 16 17 propagatedBuildInputs = [ bottle ]; 18 19 preBuild = "cd .."; 20 postInstall = '' 21 rm $out/bin/bottle.py 22 ''; 23 24 disabled = !isPy3k; 25 26 meta = { 27 description = "Grammalecte is an open source grammar checker for the French language"; 28 homepage = https://dicollecte.org/grammalecte/; 29 license = with lib.licenses; [ gpl3 ]; 30 maintainers = with lib.maintainers; [ apeyroux ]; 31 }; 32}