2017-06-10 23:16:24 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchurl
|
|
|
|
, bottle
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "grammalecte";
|
2017-08-23 21:47:47 +02:00
|
|
|
version = "0.5.18";
|
2017-06-10 23:16:24 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2017-07-13 15:09:33 +02:00
|
|
|
url = "http://www.dicollecte.org/grammalecte/zip/Grammalecte-fr-v${version}.zip";
|
2017-08-23 21:47:47 +02:00
|
|
|
sha256 = "0izfsqsj8w4awhmwmn4x8wwpqsmqbnfvfafzk93i6yj0l3fn3i97";
|
2017-06-10 23:16:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ bottle ];
|
|
|
|
|
|
|
|
preBuild = "cd ..";
|
|
|
|
postInstall = ''
|
|
|
|
mkdir $out/bin
|
|
|
|
cp $out/cli.py $out/bin/gramalecte
|
|
|
|
cp $out/server.py $out/bin/gramalected
|
|
|
|
chmod a+rx $out/bin/gramalecte
|
|
|
|
chmod a+rx $out/bin/gramalected
|
|
|
|
'';
|
|
|
|
|
|
|
|
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
|
|
|
}
|