Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738{ lib, buildPythonPackage, fetchurl, bottle, isPy3k,}:
buildPythonPackage rec { pname = "grammalecte"; version = "2.1.1"; format = "setuptools";
src = fetchurl { url = "https://grammalecte.net/grammalecte/zip/Grammalecte-fr-v${version}.zip"; hash = "sha256-9kPspgNlJGmUfZvYX7DsCPjrD3tquSXS+xi/xv3Y0hw="; };
patchPhase = '' runHook prePatch substituteInPlace grammalecte-server.py --replace sys.version_info.major sys.version_info runHook postPatch '';
propagatedBuildInputs = [ bottle ];
sourceRoot = ".";
disabled = !isPy3k;
meta = { description = "Open source grammar and typographic corrector for the French language"; homepage = "https://grammalecte.net"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ apeyroux ]; };}