From patchwork Sun Oct 2 23:10:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Rohleder X-Patchwork-Id: 43119 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A89D227BBEA; Mon, 3 Oct 2022 00:12:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6362727BBE9 for ; Mon, 3 Oct 2022 00:12:11 +0100 (BST) Received: from localhost ([::1]:49694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1of882-0002NM-JY for patchwork@mira.cbaines.net; Sun, 02 Oct 2022 19:12:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of87u-0002My-S9 for guix-patches@gnu.org; Sun, 02 Oct 2022 19:12:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49233) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1of87u-0001wA-JI for guix-patches@gnu.org; Sun, 02 Oct 2022 19:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1of87u-0005JV-FL for guix-patches@gnu.org; Sun, 02 Oct 2022 19:12:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58259] [PATCH] gnu: python-pydyf: Update to 0.3.0. Resent-From: Michael Rohleder Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 02 Oct 2022 23:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58259 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58259@debbugs.gnu.org Cc: Michael Rohleder X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166475227320357 (code B ref -1); Sun, 02 Oct 2022 23:12:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 Oct 2022 23:11:13 +0000 Received: from localhost ([127.0.0.1]:48309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1of876-0005IH-Qh for submit@debbugs.gnu.org; Sun, 02 Oct 2022 19:11:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:35664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1of874-0005I9-JQ for submit@debbugs.gnu.org; Sun, 02 Oct 2022 19:11:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of874-0002LW-EX for guix-patches@gnu.org; Sun, 02 Oct 2022 19:11:10 -0400 Received: from wp224.webpack.hosteurope.de ([2a01:488:42:1000:50ed:84e7::]:43524) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of86z-0001tP-N9 for guix-patches@gnu.org; Sun, 02 Oct 2022 19:11:10 -0400 Received: from www.rohleder.de ([37.61.204.227]); authenticated by wp224.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1of86t-0006Hw-Np; Mon, 03 Oct 2022 01:10:59 +0200 Received: from [192.168.1.3] (helo=micha.rohleder.de) by www.rohleder.de with esmtp (Exim 4.95) (envelope-from ) id 1of86r-000cbE-MC; Mon, 03 Oct 2022 01:10:59 +0200 From: Michael Rohleder Date: Mon, 3 Oct 2022 01:10:57 +0200 Message-Id: <20221002231057.18056-1-mike@rohleder.de> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-bounce-key: webpack.hosteurope.de;mike@rohleder.de;1664752265;4694b641; X-HE-SMSGID: 1of86t-0006Hw-Np Received-SPF: permerror client-ip=2a01:488:42:1000:50ed:84e7::; envelope-from=mike@rohleder.de; helo=wp224.webpack.hosteurope.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/pdf.scm (python-pydyf): Update to 0.3.0. [arguments]: Add phases to replace build and install phases. [native-inputs]: Add python-flit-core, python-pypa-build. --- gnu/packages/pdf.scm | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index d698450656..10de484ecb 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -18,7 +18,7 @@ ;;; Copyright © 2019 Ben Sturmfels ;;; Copyright © 2019,2020 Hartmut Goebel ;;; Copyright © 2020-2022 Nicolas Goaziou -;;; Copyright © 2020 Michael Rohleder +;;; Copyright © 2020, 2022 Michael Rohleder ;;; Copyright © 2020 Timotej Lazar ;;; Copyright © 2020, 2022 Maxim Cournoyer ;;; Copyright © 2021 Maxime Devos @@ -727,24 +727,36 @@ (define-public podofo (define-public python-pydyf (package (name "python-pydyf") - (version "0.1.2") + (version "0.3.0") (source (origin (method url-fetch) (uri (pypi-uri "pydyf" version)) (sha256 - (base32 "0b30g3hhxw1bg18r9ax85i1dkg8vy1y1wzas0bg0bxblh7j5sbqy")))) + (base32 "18q43g5d9455msipcgd5fvnh8m4a2rz189slzfg80yycjw66rshs")))) (build-system python-build-system) (arguments (list #:phases #~(modify-phases %standard-phases + (replace 'build + (lambda _ + (invoke "python" "-m" "build" "--wheel" "--no-isolation" "."))) + (replace 'install + (lambda _ + (let ((whl (car (find-files "dist" "\\.whl$")))) + (invoke "pip" "--no-cache-dir" "--no-input" + "install" "--no-deps" "--prefix" #$output whl)))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "pytest" "-vv" "-c" "/dev/null"))))))) (propagated-inputs (list python-pillow)) - (native-inputs (list ghostscript python-pytest)) + (native-inputs + (list ghostscript + python-flit-core + python-pypa-build + python-pytest)) (home-page "https://github.com/CourtBouillon/pydyf") (synopsis "Low-level PDF generator") (description "@code{pydyf} is a low-level PDF generator written in Python