mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
56 lines
1,004 B
Nix
56 lines
1,004 B
Nix
{ lib
|
|
, arabic-reshaper
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, html5lib
|
|
, pillow
|
|
, pyhanko
|
|
, pypdf
|
|
, pytestCheckHook
|
|
, python-bidi
|
|
, pythonOlder
|
|
, reportlab
|
|
, svglib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xhtml2pdf";
|
|
version = "0.2.11";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-L/HCw+O8bidtE5nDdO+cLS54m64dlJL+9Gjcye5gM+w=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
arabic-reshaper
|
|
html5lib
|
|
pillow
|
|
pyhanko
|
|
pypdf
|
|
python-bidi
|
|
reportlab
|
|
svglib
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"xhtml2pdf"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A PDF generator using HTML and CSS";
|
|
homepage = "https://github.com/xhtml2pdf/xhtml2pdf";
|
|
changelog = "https://github.com/xhtml2pdf/xhtml2pdf/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|