uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
35
pkgs/development/python-modules/grammalecte/default.nix
Normal file
35
pkgs/development/python-modules/grammalecte/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ 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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue