From be2b6c2e473d843f56419e34834124baace46f0d Mon Sep 17 00:00:00 2001 From: Alexandre Peyroux Date: Sat, 10 Jun 2017 23:16:24 +0200 Subject: [PATCH] gramalecte: init at v0.5.17 --- .../python-modules/grammalecte/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 1 + 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/grammalecte/default.nix diff --git a/pkgs/development/python-modules/grammalecte/default.nix b/pkgs/development/python-modules/grammalecte/default.nix new file mode 100644 index 000000000000..8ad1dd628696 --- /dev/null +++ b/pkgs/development/python-modules/grammalecte/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchurl +, bottle +, isPy3k +}: + +buildPythonPackage rec { + pname = "grammalecte"; + version = "0.5.17"; + name = "${pname}-${version}"; + + src = fetchurl { + url = "http://www.dicollecte.org/grammalecte/oxt/Grammalecte-fr-v${version}.zip"; + sha256 = "0ccvj8p8bwvrj8bp370dzjs16pwm755a7364lvk8bp4505n7g0b6"; + }; + + 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"; + homepage = "https://dicollecte.org/grammalecte/"; + license = with lib.licenses; [ gpl3 ]; + maintainers = with lib.maintainers; [ apeyroux ]; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f58efccf48fd..2e31987a8cf7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11821,6 +11821,7 @@ in { }; }; + grammalecte = callPackage ../development/python-modules/grammalecte { }; greenlet = buildPythonPackage rec { name = "greenlet-${version}";