nixpkgs/pkgs/development/python-modules/grammalecte/default.nix

33 lines
706 B
Nix
Raw Normal View History

2017-06-10 22:16:24 +01:00
{ lib
, buildPythonPackage
, fetchurl
, bottle
, isPy3k
}:
buildPythonPackage rec {
pname = "grammalecte";
2018-01-10 18:31:33 +00:00
version = "0.6.1";
2017-06-10 22:16:24 +01:00
src = fetchurl {
url = "http://www.dicollecte.org/grammalecte/zip/Grammalecte-fr-v${version}.zip";
2018-01-10 18:31:33 +00:00
sha256 = "0y2ck6pkd2p3cbjlxxvz3x5rnbg3ghfx97n13302rnab66cy4zkh";
2017-06-10 22:16:24 +01:00
};
propagatedBuildInputs = [ bottle ];
preBuild = "cd ..";
postInstall = ''
2018-01-10 18:31:33 +00:00
rm $out/bin/bottle.py
2017-06-10 22:16:24 +01:00
'';
disabled = !isPy3k;
meta = {
description = "Grammalecte is an open source grammar checker for the French language";
homepage = https://dicollecte.org/grammalecte/;
2017-06-10 22:16:24 +01:00
license = with lib.licenses; [ gpl3 ];
maintainers = with lib.maintainers; [ apeyroux ];
};
}