depot/third_party/nixpkgs/pkgs/development/python-modules/grammalecte/default.nix
Default email a6d62be0d1 Project import generated by Copybara.
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
2021-12-26 18:43:05 +01:00

35 lines
800 B
Nix

{ lib
, buildPythonPackage
, fetchurl
, bottle
, isPy3k
}:
buildPythonPackage rec {
pname = "grammalecte";
version = "2.1.1";
src = fetchurl {
url = "https://grammalecte.net/grammalecte/zip/Grammalecte-fr-v${version}.zip";
sha256 = "076jv3ywdgqqzg92bfbagc7ypy08xjq5zn4vgna6j9350fkfqhzn";
};
patchPhase = ''
runHook prePatch
substituteInPlace grammalecte-server.py --replace sys.version_info.major sys.version_info
runHook postPatch
'';
propagatedBuildInputs = [ bottle ];
sourceRoot = ".";
disabled = !isPy3k;
meta = {
description = "An open source grammar and typographic corrector for the French language";
homepage = "https://grammalecte.net";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ apeyroux ];
};
}