3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #151075 from ThibautMarty/grammalecte-2.1.1

grammalecte: 0.6.5 -> 2.1.1
This commit is contained in:
Bobby Rong 2021-12-25 15:45:20 +08:00 committed by GitHub
commit 291abb4e20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 ];
};
}