Skip to content

Commit be2b6c2

Browse files
Alexandre PeyrouxFRidh
Alexandre Peyroux
authored andcommittedJun 23, 2017
gramalecte: init at v0.5.17
1 parent 69ca7b1 commit be2b6c2

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -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
Original file line numberDiff line numberDiff line change
@@ -11821,6 +11821,7 @@ in {
1182111821
};
1182211822
};
1182311823

11824+
grammalecte = callPackage ../development/python-modules/grammalecte { };
1182411825

1182511826
greenlet = buildPythonPackage rec {
1182611827
name = "greenlet-${version}";

0 commit comments

Comments
 (0)
Please sign in to comment.