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