From patchwork Tue Jan 16 00:34:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marco Rimoldi X-Patchwork-Id: 58927 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 ABA1727BBEA; Tue, 16 Jan 2024 00:37:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 8A6C227BBE2 for ; Tue, 16 Jan 2024 00:37:11 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPXR9-0005c5-1D; Mon, 15 Jan 2024 19:36:15 -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 1rPXR4-0005ae-V5 for guix-patches@gnu.org; Mon, 15 Jan 2024 19:36:10 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rPXQw-00085M-Dl for guix-patches@gnu.org; Mon, 15 Jan 2024 19:36:10 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rPXQw-0003do-FB for guix-patches@gnu.org; Mon, 15 Jan 2024 19:36:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68052] [PATCH v1 2/3] gnu: python-pyportmidi: Update to first working git revision since project restarted development, fixing build. Resent-From: rimarko@libero.it Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Jan 2024 00:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68052 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo patch To: 68052@debbugs.gnu.org Cc: Marco Rimoldi Received: via spool by 68052-submit@debbugs.gnu.org id=B68052.170536531813921 (code B ref 68052); Tue, 16 Jan 2024 00:36:02 +0000 Received: (at 68052) by debbugs.gnu.org; 16 Jan 2024 00:35:18 +0000 Received: from localhost ([127.0.0.1]:47292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPXQE-0003cN-4v for submit@debbugs.gnu.org; Mon, 15 Jan 2024 19:35:18 -0500 Received: from smtp-32.italiaonline.it ([213.209.10.32]:39064 helo=libero.it) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPXQ9-0003bg-QG for 68052@debbugs.gnu.org; Mon, 15 Jan 2024 19:35:15 -0500 Received: from localhost ([93.38.119.137]) by smtp-32.iol.local with ESMTPA id PXPyrhnNiQSiOPXQ8rz6QL; Tue, 16 Jan 2024 01:35:13 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1705365313; bh=j2vCvKvFyQrSm95Dtlo6JUMx1s6GyYEJWHUfdY9Fnoo=; h=From; b=0URYy/qtjMI8LYZBf0G65ABKtgZX9qpukgUpWvoPqUD+TgPTCOB7KKM8NBI+HJXz8 gOQ7Ps0bs4kGo5/Upa5BwbrvOrHugvGlwnN+PbVvD0WAjyLieF3K/3/kacUx48WiN5 ArWq5z2PhdizZXTdIj67jqX15nEHyO+U2rwrA/ggEJMpftmCRX+7g2ATSSvH0Vsm/v fn79+OLMIKPlSGjT3CP4z8l5DHs26aQxzW8ozhB1bMNUapW6um4ZlkiN+UPMnQSpqV t78v+1sfyZMLljsdG9xu5ADu9eWYsmJO11fF/22mdioAesLUyLBln0VVYccgaKjQhF zyc/Jt4mg19Eg== X-CNFS-Analysis: v=2.4 cv=M6buKDws c=1 sm=1 tr=0 ts=65a5cf41 cx=a_exe a=zr5aN+YwjWvrDHBFAPbA8Q==:117 a=zr5aN+YwjWvrDHBFAPbA8Q==:17 a=FP58Ms26AAAA:8 a=NEAV23lmAAAA:8 a=chmFKnp8fg3vtchoswQA:9 Date: Tue, 16 Jan 2024 01:34:13 +0100 Message-ID: <410a4779ff3db386147cc7b7761823d29d0c11cd.1705365254.git.rimarko@libero.it> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 X-CMAE-Envelope: MS4xfJAe/vQPJ9G7ZK2NrOLkz2neSonFMYt112/701e4kiEPNa+SEN6AQcNHjbNPHUAw0ZtyliegmeZmJXWmx14MQUQmr3M2mftvwSkNDf1Ji3iZkPyjA8Qo ieGAWGo5uetqzQcA7MvV4aVfTScR6ynhbpZYiG2C98OPlfU1wpZl4i2U0/iQU/jFi9/+HuTZCVs0i1k6zBzz9i8Ij3nKI0jT/uY= 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: , Reply-to: rimarko@libero.it X-ACL-Warn: , Marco Rimoldi via Guix-patches X-Patchwork-Original-From: Marco Rimoldi via Guix-patches via From: Marco Rimoldi Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: Marco Rimoldi When the PortMidi project moved to GitHub in 2021, changing version numbering scheme, the Python bindings were moved to a separate repository and marked as needing a new maintainer. The chosen revision, dated June 2023, is the first to allow the package to build successfully in the temporary lack of an official new release. * gnu/packages/music.scm (python-pyportmidi): Source moved, fix build. [version]: Change to new scheme, jumping from 217 to 0.0.7. [source]: Change origin from Sourceforge to GitHub. Change-Id: Ibe02edca39731f3f3c9001818665d2da97df9465 --- gnu/packages/music.scm | 52 ++++++++++++++++++------------------------ 1 file changed, 22 insertions(+), 30 deletions(-) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index 77e952d383..28141c11a5 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -3048,36 +3048,28 @@ (define-public portmidi (license license:expat))) (define-public python-pyportmidi - (package - (name "python-pyportmidi") - (version (package-version portmidi)) - (source (package-source portmidi)) - (build-system python-build-system) - (arguments - `(#:tests? #f ; no tests included - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'enter-dir - (lambda _ (chdir "pm_python") #t)) - (add-after 'enter-dir 'fix-setup.py - (lambda _ - (substitute* "setup.py" - ;; Use Python 3 syntax - (("print (\".*\")" _ text) - (string-append "print(" text ")\n")) - ;; TODO.txt and CHANGES.txt don't exist - (("CHANGES =.*") "CHANGES = \"\"\n") - (("TODO =.*") "TODO = \"\"\n")) - #t))))) - (inputs - (list portmidi alsa-lib)) - (native-inputs - (list python-cython unzip)) - (home-page "https://portmedia.sourceforge.net/portmidi/") - (synopsis "Python bindings to PortMidi") - (description - "This package provides Python bindings to the PortMidi library.") - (license license:expat))) + (let ((commit "d9e5ee00b208b09618fa0d4a5bbce3c9c077b386") + (revision "0")) + (package + (name "python-pyportmidi") + (version (git-version "0.0.7" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/PortMidi/pm_python") + (commit commit))) + (sha256 + (base32 "1jvp9na8d1hw46w9ybhkimbavfb3ysw7hp30cbk6dj40k5y5vgvz")) + (file-name (git-file-name name version)))) + (build-system python-build-system) + (inputs (list portmidi alsa-lib)) + (native-inputs (list python-cython)) + (home-page "https://github.com/PortMidi") + (synopsis "Python bindings to PortMidi") + (description + "This package provides Python bindings to the PortMidi library.") + (license license:expat)))) (define-public frescobaldi (package