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
65
pkgs/development/python-modules/img2pdf/default.nix
Normal file
65
pkgs/development/python-modules/img2pdf/default.nix
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, isPy27
|
||||
, fetchPypi
|
||||
, pikepdf
|
||||
, pillow
|
||||
, stdenv
|
||||
, exiftool
|
||||
, ghostscript
|
||||
, imagemagick
|
||||
, mupdf
|
||||
, netpbm
|
||||
, numpy
|
||||
, poppler_utils
|
||||
, pytestCheckHook
|
||||
, scipy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "img2pdf";
|
||||
version = "0.4.4";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8ec898a9646523fd3862b154f3f47cd52609c24cc3e2dc1fb5f0168f0cbe793c";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pikepdf
|
||||
pillow
|
||||
];
|
||||
|
||||
# https://gitlab.mister-muffin.de/josch/img2pdf/issues/128
|
||||
doCheck = !stdenv.isAarch64;
|
||||
|
||||
checkInputs = [
|
||||
exiftool
|
||||
ghostscript
|
||||
imagemagick
|
||||
mupdf
|
||||
netpbm
|
||||
numpy
|
||||
poppler_utils
|
||||
pytestCheckHook
|
||||
scipy
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export img2pdfprog="$out/bin/img2pdf"
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
"test_tiff_rgb"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "img2pdf" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Convert images to PDF via direct JPEG inclusion";
|
||||
homepage = "https://gitlab.mister-muffin.de/josch/img2pdf";
|
||||
license = licenses.lgpl2;
|
||||
maintainers = with maintainers; [ veprbl dotlambda ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue