nixpkgs/pkgs/development/python-modules/grammalecte/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00

33 lines
706 B
Nix

{ lib
, buildPythonPackage
, fetchurl
, bottle
, isPy3k
}:
buildPythonPackage rec {
pname = "grammalecte";
version = "0.6.1";
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 ];
};
}