grammalecte: 0.6.5 -> 2.1.1

This commit is contained in:
Thibaut Marty 2021-12-17 10:55:47 +01:00
parent 5caed9dc02
commit a6e1747d00

View File

@ -7,23 +7,29 @@
buildPythonPackage rec {
pname = "grammalecte";
version = "0.6.5";
version = "2.1.1";
src = fetchurl {
url = "http://www.dicollecte.org/grammalecte/zip/Grammalecte-fr-v${version}.zip";
sha256 = "11byjs3ggdhia5f4vyfqfvbbczsfqimll98h98g7hlsrm7vrifb0";
url = "https://grammalecte.net/grammalecte/zip/Grammalecte-fr-v${version}.zip";
sha256 = "076jv3ywdgqqzg92bfbagc7ypy08xjq5zn4vgna6j9350fkfqhzn";
};
patchPhase = ''
runHook prePatch
substituteInPlace grammalecte-server.py --replace sys.version_info.major sys.version_info
runHook postPatch
'';
propagatedBuildInputs = [ bottle ];
preBuild = "cd ..";
sourceRoot = ".";
disabled = !isPy3k;
meta = {
description = "Grammalecte is an open source grammar checker for the French language";
description = "An open source grammar and typographic corrector for the French language";
homepage = "https://grammalecte.net";
license = with lib.licenses; [ gpl3 ];
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ apeyroux ];
};
}