git.iko.soy/typeable/nixpkgs
on master help sign in
gramalecte: init at v0.5.17
commitbe2b6c2e473d843f56419e34834124baace46f0d authorAlexandre Peyroux <alex@xn--wxa.email> dateSat 10 Jun 2017, 23:16 (9 years ago) parent69ca7b1
2 files changed+38
pkgs/development/python-modules/grammalecte/default.nix+37 pkgs/top-level/python-packages.nix+1
pkgs/development/python-modules/grammalecte/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ lib
2+, buildPythonPackage
3+, fetchurl
4+, bottle
5+, isPy3k
6+}:
7+
8+buildPythonPackage rec {
9+ pname = "grammalecte";
10+ version = "0.5.17";
11+ name = "${pname}-${version}";
12+
13+ src = fetchurl {
14+ url = "http://www.dicollecte.org/grammalecte/oxt/Grammalecte-fr-v${version}.zip";
15+ sha256 = "0ccvj8p8bwvrj8bp370dzjs16pwm755a7364lvk8bp4505n7g0b6";
16+ };
17+
18+ propagatedBuildInputs = [ bottle ];
19+
20+ preBuild = "cd ..";
21+ postInstall = ''
22+ mkdir $out/bin
23+ cp $out/cli.py $out/bin/gramalecte
24+ cp $out/server.py $out/bin/gramalected
25+ chmod a+rx $out/bin/gramalecte
26+ chmod a+rx $out/bin/gramalected
27+ '';
28+
29+ disabled = !isPy3k;
30+
31+ meta = {
32+ description = "Grammalecte is an open source grammar checker for the French language";
33+ homepage = "https://dicollecte.org/grammalecte/";
34+ license = with lib.licenses; [ gpl3 ];
35+ maintainers = with lib.maintainers; [ apeyroux ];
36+ };
37+}
pkgs/top-level/python-packages.nix+1
@@ -11821,6 +11821,7 @@ in {
1182111821 };
1182211822 };
1182311823
11824+ grammalecte = callPackage ../development/python-modules/grammalecte { };
1182411825
1182511826 greenlet = buildPythonPackage rec {
1182611827 name = "greenlet-${version}";