grammalecte: 0.5.17 -> 0.5.17.2 (#27190)

This commit is contained in:
Alexandre Peyroux 2017-07-13 15:09:33 +02:00 committed by Jörg Thalheim
parent aed23cfc0c
commit 8fa0b47c6d
2 changed files with 18 additions and 4 deletions

View file

@ -7,16 +7,17 @@
buildPythonPackage rec {
pname = "grammalecte";
version = "0.5.17";
version = "0.5.17.2";
name = "${pname}-${version}";
src = fetchurl {
url = "http://www.dicollecte.org/grammalecte/oxt/Grammalecte-fr-v${version}.zip";
sha256 = "0ccvj8p8bwvrj8bp370dzjs16pwm755a7364lvk8bp4505n7g0b6";
url = "http://www.dicollecte.org/grammalecte/zip/Grammalecte-fr-v${version}.zip";
sha256 = "1g5i978cdz14rfdi4z2ayb2c1rf8cq991slwsv0krhpvl9ripl9c";
};
propagatedBuildInputs = [ bottle ];
patches = [ ./spellchecker.patch ];
preBuild = "cd ..";
postInstall = ''
mkdir $out/bin
@ -34,4 +35,4 @@ buildPythonPackage rec {
license = with lib.licenses; [ gpl3 ];
maintainers = with lib.maintainers; [ apeyroux ];
};
}
}

View file

@ -0,0 +1,13 @@
diff --git a/spellchecker.py b/spellchecker.py
index 37ac0ea..a60b3a9 100644
--- a/spellchecker.py
+++ b/spellchecker.py
@@ -2,7 +2,7 @@
# Wrapper for the IBDAWG class.
# Useful to check several dictionaries at once.
-import ibdawg
+from grammalecte import ibdawg
dDictionaries = {