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