diff options
author | Matthew Justin Bauer <mjbauer95@gmail.com> | 2018-04-09 14:07:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-09 14:07:40 -0500 |
commit | 6a74718e00672c8c8377a97e0052cc635b65dfab (patch) | |
tree | b5e91b4e3546077401cdb40fb8f16f91165c9570 /pkgs/applications/science/misc/sasview/xhtml2pdf.nix | |
parent | a7341d70ef3ba6ff06ef28f72ace76240cf1171a (diff) | |
parent | 392def733b61855e667c7ce7a777a6bdc397ef44 (diff) | |
download | nixlib-6a74718e00672c8c8377a97e0052cc635b65dfab.tar nixlib-6a74718e00672c8c8377a97e0052cc635b65dfab.tar.gz nixlib-6a74718e00672c8c8377a97e0052cc635b65dfab.tar.bz2 nixlib-6a74718e00672c8c8377a97e0052cc635b65dfab.tar.lz nixlib-6a74718e00672c8c8377a97e0052cc635b65dfab.tar.xz nixlib-6a74718e00672c8c8377a97e0052cc635b65dfab.tar.zst nixlib-6a74718e00672c8c8377a97e0052cc635b65dfab.zip |
Merge pull request #36852 from rprospero/sasview-for-pr
sasview: init at 4.1.2
Diffstat (limited to 'pkgs/applications/science/misc/sasview/xhtml2pdf.nix')
-rw-r--r-- | pkgs/applications/science/misc/sasview/xhtml2pdf.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/science/misc/sasview/xhtml2pdf.nix b/pkgs/applications/science/misc/sasview/xhtml2pdf.nix new file mode 100644 index 000000000000..0b3d438843da --- /dev/null +++ b/pkgs/applications/science/misc/sasview/xhtml2pdf.nix @@ -0,0 +1,32 @@ +{lib, fetchPypi, buildPythonPackage, html5lib, httplib2, nose, pillow, pypdf2, reportlab}: + +let + #xhtml2pdf specifically requires version "1.0b10" of html5lib + html5 = html5lib.overrideAttrs( oldAttrs: rec{ + version = "1.0b10"; + src = oldAttrs.src.override { + inherit version; + sha256 = "1yd068a5c00wd0ajq0hqimv7fd82lhrw0w3s01vbhy9bbd6xapqd"; + }; + }); +in + +buildPythonPackage rec { + pname = "xhtml2pdf"; + version = "0.2.1"; + + buildInputs = [html5]; + propagatedBuildInputs = [httplib2 nose pillow pypdf2 reportlab html5]; + + src = fetchPypi { + inherit pname version; + sha256 = "1n9r8zdk9gc2x539fq60bhszmd421ipj8g78zmsn3njvma1az9k1"; + }; + + meta = { + description = "A pdf converter for the ReportLab Toolkit"; + homepage = https://github.com/xhtml2pdf/xhtml2pdf; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ rprospero ]; + }; +} |