From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id Ag5YIyygyGNFfwAAbAwnHQ (envelope-from ) for ; Thu, 19 Jan 2023 02:43:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yOhjIiygyGPAkwAAauVa8A (envelope-from ) for ; Thu, 19 Jan 2023 02:43:08 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3A8DF1F42E for ; Thu, 19 Jan 2023 02:43:08 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIJxJ-0000JQ-UA; Wed, 18 Jan 2023 20:43:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pIJxG-0000JH-SD for guix-patches@gnu.org; Wed, 18 Jan 2023 20:43:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIJxG-00040r-J2 for guix-patches@gnu.org; Wed, 18 Jan 2023 20:43:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pIJxG-0001ia-E5 for guix-patches@gnu.org; Wed, 18 Jan 2023 20:43:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60941] [PATCH 1/2] gnu: Add python-pypdf. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Jan 2023 01:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60941 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Vagrant Cascadian Cc: 60941@debbugs.gnu.org Received: via spool by 60941-submit@debbugs.gnu.org id=B60941.16740925426545 (code B ref 60941); Thu, 19 Jan 2023 01:43:02 +0000 Received: (at 60941) by debbugs.gnu.org; 19 Jan 2023 01:42:22 +0000 Received: from localhost ([127.0.0.1]:42148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIJwc-0001hU-BD for submit@debbugs.gnu.org; Wed, 18 Jan 2023 20:42:22 -0500 Received: from mail-qt1-f176.google.com ([209.85.160.176]:41794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIJwZ-0001hE-Ek for 60941@debbugs.gnu.org; Wed, 18 Jan 2023 20:42:21 -0500 Received: by mail-qt1-f176.google.com with SMTP id d16so476784qtw.8 for <60941@debbugs.gnu.org>; Wed, 18 Jan 2023 17:42:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=A2izewa1ne9YY3qnrXBQsl7FQue/bCr/ndDI0Pwx1iI=; b=aVBszKjTXegsLoJhpDvVX6dGuEv7nxG5rXrDaYxGwkMyIrp4Z8QIGO6Itwio5RFCS5 L9vkIJIBHpDdI1MEUjcGQuOCheNgJI/YpcEXRsT/bm/Na7ToBNpRQ7qGIKCMx0NOk27C 6a/FP1xwX1tstXX05MrLZWpF3RtTXxd+2QF58NHrf8AoebwlR7WmdliBOIg73ZbTN+QJ LUstq0me2/ZA5BNkcqSkjvxkdte6DbzbETlp+/tn+6qBWROc7zII4C9Y1h0f+UC18upI qwoBiZ6HYDZM4UdwKU/TJtMgDvXi2T+M2YZ3Qsxkd4ABoWcTznGrC2jRYCRxRRdGZoNN /BpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=A2izewa1ne9YY3qnrXBQsl7FQue/bCr/ndDI0Pwx1iI=; b=12GgwCfPSZg9BlVGH8G76SABjjScSsWVTWMZk0uM1aarOa2Vg11vvifflMw29Q83Js 5FJltNiCAgP8Ie/7bEgy3/smkv6y4meHqan/DGvEMmcTTjorwZeKieAVuZbPO+4fzhlv rCJAZjmQnLZO4tH6MP4E1gYcv58qsT/epwvq0nTgGfCsofYi9RA0xDVFBv9dcWhbl/Zz dqL75SbhnLpsTY6g7GBlPENjN0AJUwkFCFyEwRzWRIX2mQVj7kj83xsytVBKs5URnByX +lKHHNnyJufz+fOtwe+f/XlbLO30l36C+zlPGtqLTMG1bhKnC27Y+byjfqWeohbJWi92 y62w== X-Gm-Message-State: AFqh2koxyLWfXVNJyqHwNaI4nt1w8+sQLQrtYBci8rnzCZLUvnaCbKqe uV2bK5hKzd+xP1vxWW7FSuKp7AuiTTxfYYew X-Google-Smtp-Source: AMrXdXtc95LDCmDkL2IysMgnFUaMz7hAPbGU02TJjIuVNgcH4v5i/J1veoMWHAj93sxp2czXrZkWLw== X-Received: by 2002:a05:622a:5086:b0:3b6:2b38:e075 with SMTP id fp6-20020a05622a508600b003b62b38e075mr12991353qtb.9.1674092532958; Wed, 18 Jan 2023 17:42:12 -0800 (PST) Received: from hurd ([2607:fad8:4:3::1001]) by smtp.gmail.com with ESMTPSA id l6-20020ac81486000000b003a981f7315bsm18303640qtj.44.2023.01.18.17.42.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 17:42:12 -0800 (PST) From: Maxim Cournoyer References: <87ilh3z4vo.fsf@contorta> <87edrrz4nd.fsf@contorta> Date: Wed, 18 Jan 2023 20:42:11 -0500 In-Reply-To: <87edrrz4nd.fsf@contorta> (Vagrant Cascadian's message of "Wed, 18 Jan 2023 17:36:54 -0800") Message-ID: <87pmbbe1vw.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674092588; a=rsa-sha256; cv=none; b=pLwEk1uUOjQDEd8e4Os+cVYpEt/j8U3fRbMySwd+7Wvaop0uJ8WSPOdOQHoRwpGgjyC6Zy KiU4ow2zEyfDN6kXzIwm7gko65UKRiCO3s2oCW1YEvVvVvMsvGQYpu3x56qlUAJv5MVfcH WtuoTaOFP6iiVT64rjt7hXPG1xOExThW6F+an42xxgaWtTbxrCrkbOAMP0iA81DS3B0qfW ZQxC+Ef+JcOIgLP69jAoZ6T3VQakJYw2DtVDHA5WpO+ov8O2pi/hGswZ4HxUjzPUxJS6nS 24sRu/KvvKmSJqO7AYnnD7gJm9z02TEhsXomhVkBGpAp+CVYFo8ABiZfW8o6gQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=aVBszKjT; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674092588; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=A2izewa1ne9YY3qnrXBQsl7FQue/bCr/ndDI0Pwx1iI=; b=kN7A2csrKGGQlYYnY1KrjRdIfZIZKIxc0XbexcuYg5eiqm+1oADIkxoeqjlOS2jpHbdo9R sNzb/nKhK86llf/7rgKHI3I2dj9Ip051TsbZuXhC5DqDyLCKQd3RT0eqVMgaYIrq0EDWKR YRGv+l1h2n/tzS9jA8ORXxJBFbYtFqFNLFH0cgxC5MnO50fkv5caIb5aNeQfot7QJgqYX2 Rkm67TjTtTlT+MsUA6IlnIIbJi6BJeyUykBCMbNYAXWjzXaas0ALTmzqxmuIA5DDSMZaW4 xPHHHvU3Qz3pSl9RllWOlWdy4Jd+7ymDu2SOEVPi1I4D036ihHZHpPBkkNQaiA== X-Spam-Score: 5.38 X-Migadu-Queue-Id: 3A8DF1F42E Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=aVBszKjT; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: 5.38 X-TUID: 8Zu7UgIbQX+A Hello, Vagrant Cascadian writes: > From e2082819efee20a72b026eebcfc14af279e424c7 Mon Sep 17 00:00:00 2001 > From: Vagrant Cascadian > Date: Wed, 18 Jan 2023 16:26:41 -0800 > Subject: [PATCH 1/2] gnu: Add python-pypdf. > > * gnu/packages/pdf.scm (python-pypdf): New varaible. > --- > gnu/packages/pdf.scm | 39 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > > diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm > index 4b9d0623fe..cb94c29bde 100644 > --- a/gnu/packages/pdf.scm > +++ b/gnu/packages/pdf.scm > @@ -1260,6 +1260,45 @@ (define-public pdf2svg > converter using the Poppler and Cairo libraries.") > (license license:gpl2+))) > > +(define-public python-pypdf > + (package > + (name "python-pypdf") > + (version "3.2.1") > + (source (origin > + (method url-fetch) > + (uri (pypi-uri "pypdf" version)) > + (sha256 > + (base32 > + "1pdq4nbkknx61pk8w75jvx5j921m2676wfkyizsrap5mj92cssxc")))) > + (build-system python-build-system) You should use pyproject-build-system, which knows how to build a project from a PEP 517 build system. > + (arguments > + (list #:tests? #f ;pypi source does not contains tests When this occurs, you can fetch from git instead. Typically Python packages come with test suites, and this one is no exception. > + #:phases #~(modify-phases %standard-phases > + (replace 'build > + (lambda _ > + (invoke "flit" "build"))) > + (replace 'install > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (add-installed-pythonpath inputs outputs) > + (for-each (lambda (wheel) > + (invoke "python" > + "-m" > + "pip" > + "install" > + wheel > + (string-append "--prefix=" > + #$output))) > + (find-files "dist" "\\.whl$"))))))) > + (native-inputs (list python-flit)) > + (propagated-inputs (list python-typing-extensions)) > + (home-page "https://github.com/py-pdf/pypdf") > + (synopsis > + "A pure-python PDF library") guix lint should complain about the leading determinant ("A"). > + (description > + "This package provides a pure-python PDF library capable of splitting, merging, > +cropping, and transforming PDF files") Missing period, and "pure-python" is odd. Perhaps just "This package provides a Python PDF library [...]" -- Thanks, Maxim