mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-22 13:29:00 +02:00
Merge pull request #164843 from fabaff/fix-xhtml2pdf
python3Packages.xhtml2pdf: 0.2.5 -> 0.2.6
This commit is contained in:
commit
faa420de30
|
@ -1,34 +1,53 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
|
||||||
, fetchPypi
|
|
||||||
, pillow
|
|
||||||
, html5lib
|
|
||||||
, pypdf2
|
|
||||||
, reportlab
|
|
||||||
, six
|
|
||||||
, python-bidi
|
|
||||||
, arabic-reshaper
|
, arabic-reshaper
|
||||||
, setuptools
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, html5lib
|
||||||
|
, pillow
|
||||||
|
, pypdf3
|
||||||
|
, pytestCheckHook
|
||||||
|
, python-bidi
|
||||||
|
, pythonOlder
|
||||||
|
, reportlab
|
||||||
|
, svglib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "xhtml2pdf";
|
pname = "xhtml2pdf";
|
||||||
version = "0.2.5";
|
version = "0.2.6";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = pname;
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-EyIERvAC98LqPTMCdwWqTkm1RiMhikscL0tnMZUHIT8=";
|
||||||
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pillow html5lib pypdf2 reportlab six
|
arabic-reshaper
|
||||||
setuptools python-bidi arabic-reshaper
|
html5lib
|
||||||
|
pillow
|
||||||
|
pypdf3
|
||||||
|
python-bidi
|
||||||
|
reportlab
|
||||||
|
svglib
|
||||||
];
|
];
|
||||||
|
|
||||||
src = fetchPypi {
|
checkInputs = [
|
||||||
inherit pname version;
|
pytestCheckHook
|
||||||
sha256 = "6797e974fac66f0efbe927c1539a2756ca4fe8777eaa5882bac132fc76b39421";
|
];
|
||||||
};
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"xhtml2pdf"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A PDF generator using HTML and CSS";
|
description = "A PDF generator using HTML and CSS";
|
||||||
homepage = "https://github.com/xhtml2pdf/xhtml2pdf";
|
homepage = "https://github.com/xhtml2pdf/xhtml2pdf";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue