nixpkgs/pkgs/development/python-modules/grammalecte/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

39 lines
925 B
Nix

{ lib
, buildPythonPackage
, fetchurl
, bottle
, isPy3k
}:
buildPythonPackage rec {
pname = "grammalecte";
version = "0.5.17.2";
name = "${pname}-${version}";
src = fetchurl {
url = "http://www.dicollecte.org/grammalecte/zip/Grammalecte-fr-v${version}.zip";
sha256 = "1g5i978cdz14rfdi4z2ayb2c1rf8cq991slwsv0krhpvl9ripl9c";
};
propagatedBuildInputs = [ bottle ];
patches = [ ./spellchecker.patch ];
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 ];
};
}