From: oynqr <oynqr@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] img2pdf: update to 0.4.4.
Date: Sat, 09 Apr 2022 16:08:39 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-36601@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1291 bytes --]
There is a new pull request by oynqr against master on the void-packages repository
https://github.com/oynqr/void-packages img2pdf
https://github.com/void-linux/void-packages/pull/36601
img2pdf: update to 0.4.4.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
I enabled tests again and patched the remaining failing ones.
A patch file from https://github.com/void-linux/void-packages/pull/36601.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-img2pdf-36601.patch --]
[-- Type: text/x-diff, Size: 2896 bytes --]
From 6c17fa34c7cd24abf98caa225bc6f60d2bf4abd9 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Sat, 9 Apr 2022 14:10:43 +0200
Subject: [PATCH] img2pdf: update to 0.4.4.
---
.../img2pdf/patches/1_fix_broken_tests.patch | 23 +++++++++++++++++++
srcpkgs/img2pdf/template | 7 +++---
2 files changed, 27 insertions(+), 3 deletions(-)
create mode 100644 srcpkgs/img2pdf/patches/1_fix_broken_tests.patch
diff --git a/srcpkgs/img2pdf/patches/1_fix_broken_tests.patch b/srcpkgs/img2pdf/patches/1_fix_broken_tests.patch
new file mode 100644
index 000000000000..7f873ce2f830
--- /dev/null
+++ b/srcpkgs/img2pdf/patches/1_fix_broken_tests.patch
@@ -0,0 +1,23 @@
+--- a/src/img2pdf_test.py
++++ b/src/img2pdf_test.py
+@@ -2542,10 +2542,7 @@ def tiff_rgb12_img(tmp_path_factory, tmp_normal16_png):
+ assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str(
+ identify
+ ) # FIXME: should be LSB
+- if identify[0].get("version", "0") < "1.0":
+- assert identify[0]["image"].get("depth") == 12, str(identify)
+- else:
+- assert identify[0]["image"].get("depth") == 16, str(identify)
++ assert identify[0]["image"].get("depth") == 12, str(identify)
+ assert identify[0]["image"].get("baseDepth") == 12, str(identify)
+ assert identify[0]["image"].get("pageGeometry") == {
+ "width": 60,
+@@ -2602,7 +2599,7 @@ def tiff_rgb14_img(tmp_path_factory, tmp_normal16_png):
+ assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str(
+ identify
+ ) # FIXME: should be LSB
+- assert identify[0]["image"].get("depth") == 16, str(identify)
++ assert identify[0]["image"].get("depth") == 14, str(identify)
+ assert identify[0]["image"].get("baseDepth") == 14, str(identify)
+ assert identify[0]["image"].get("pageGeometry") == {
+ "width": 60,
diff --git a/srcpkgs/img2pdf/template b/srcpkgs/img2pdf/template
index a24ea1f1b610..266bd3ab63e8 100644
--- a/srcpkgs/img2pdf/template
+++ b/srcpkgs/img2pdf/template
@@ -1,14 +1,15 @@
# Template file for 'img2pdf'
pkgname=img2pdf
-version=0.4.3
+version=0.4.4
revision=1
build_style=python3-module
hostmakedepends="python3-pikepdf python3-setuptools"
depends="colord python3-pdfrw python3-pikepdf python3-Pillow python3-tkinter"
+checkdepends="exiftool ghostscript ImageMagick mupdf-tools netpbm poppler
+ python3-numpy python3-pytest python3-scipy $depends"
short_desc="Lossless conversion of raster images to PDF"
maintainer="Philipp David <pd@3b.pm>"
license="GPL-3.0-or-later"
homepage="https://gitlab.mister-muffin.de/josch/img2pdf"
distfiles="${PYPI_SITE}/i/img2pdf/img2pdf-${version}.tar.gz"
-checksum=8e51c5043efa95d751481b516071a006f87c2a4059961a9ac43ec238915de09f
-make_check=no # need to patch out some bitdepth checks
+checksum=8ec898a9646523fd3862b154f3f47cd52609c24cc3e2dc1fb5f0168f0cbe793c
next reply other threads:[~2022-04-09 14:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-09 14:08 oynqr [this message]
2022-04-09 14:21 ` [PR PATCH] [Updated] " oynqr
2022-04-25 9:10 ` [PR PATCH] [Merged]: " paper42
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-36601@inbox.vuxu.org \
--to=oynqr@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).