2017-06-10 23:16:24 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchurl
|
|
|
|
, bottle
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "grammalecte";
|
2018-01-10 19:31:33 +01:00
|
|
|
version = "0.6.1";
|
2017-06-10 23:16:24 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-07-13 15:09:33 +02:00
|
|
|
url = "http://www.dicollecte.org/grammalecte/zip/Grammalecte-fr-v${version}.zip";
|
2018-01-10 19:31:33 +01:00
|
|
|
sha256 = "0y2ck6pkd2p3cbjlxxvz3x5rnbg3ghfx97n13302rnab66cy4zkh";
|
2017-06-10 23:16:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ bottle ];
|
|
|
|
|
|
|
|
preBuild = "cd ..";
|
|
|
|
postInstall = ''
|
2018-01-10 19:31:33 +01:00
|
|
|
rm $out/bin/bottle.py
|
2017-06-10 23:16:24 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Grammalecte is an open source grammar checker for the French language";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://dicollecte.org/grammalecte/;
|
2017-06-10 23:16:24 +02:00
|
|
|
license = with lib.licenses; [ gpl3 ];
|
|
|
|
maintainers = with lib.maintainers; [ apeyroux ];
|
|
|
|
};
|
2017-07-13 15:09:33 +02:00
|
|
|
}
|