mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 17:25:11 +00:00
34 lines
738 B
Nix
34 lines
738 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchurl
|
|
, bottle
|
|
, isPy3k
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "grammalecte";
|
|
version = "0.6.1";
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.dicollecte.org/grammalecte/zip/Grammalecte-fr-v${version}.zip";
|
|
sha256 = "0y2ck6pkd2p3cbjlxxvz3x5rnbg3ghfx97n13302rnab66cy4zkh";
|
|
};
|
|
|
|
propagatedBuildInputs = [ bottle ];
|
|
|
|
preBuild = "cd ..";
|
|
postInstall = ''
|
|
rm $out/bin/bottle.py
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|