diff --git a/pkgs/development/python-modules/grammalecte/default.nix b/pkgs/development/python-modules/grammalecte/default.nix index 8ad1dd628696..ac476f6bb6a2 100644 --- a/pkgs/development/python-modules/grammalecte/default.nix +++ b/pkgs/development/python-modules/grammalecte/default.nix @@ -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 ]; }; -} \ No newline at end of file +} diff --git a/pkgs/development/python-modules/grammalecte/spellchecker.patch b/pkgs/development/python-modules/grammalecte/spellchecker.patch new file mode 100644 index 000000000000..151eaa62f4a5 --- /dev/null +++ b/pkgs/development/python-modules/grammalecte/spellchecker.patch @@ -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 = {