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
57
pkgs/development/python-modules/xhtml2pdf/default.nix
Normal file
57
pkgs/development/python-modules/xhtml2pdf/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ lib
|
||||
, arabic-reshaper
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, html5lib
|
||||
, pillow
|
||||
, pyhanko
|
||||
, pypdf3
|
||||
, pytestCheckHook
|
||||
, python-bidi
|
||||
, pythonOlder
|
||||
, reportlab
|
||||
, svglib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "xhtml2pdf";
|
||||
version = "0.2.7";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
# Tests are only available on GitHub
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
# Currently it is not possible to fetch from version as there is a branch with the same name
|
||||
rev = "afa72cdbbdaf7d459261c1605263101ffcd999af";
|
||||
sha256 = "sha256-plyIM7Ohnp5UBWz/UDTJa1UeWK9yckSZR16wxmLrpnc=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
arabic-reshaper
|
||||
html5lib
|
||||
pillow
|
||||
pyhanko
|
||||
pypdf3
|
||||
python-bidi
|
||||
reportlab
|
||||
svglib
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"xhtml2pdf"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A PDF generator using HTML and CSS";
|
||||
homepage = "https://github.com/xhtml2pdf/xhtml2pdf";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue