From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mMM4IHWBnF99VgAA0tVLHw (envelope-from ) for ; Fri, 30 Oct 2020 21:11:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IP0gHHWBnF8MIQAAbx9fmQ (envelope-from ) for ; Fri, 30 Oct 2020 21:11:17 +0000 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 E4B0394014A for ; Fri, 30 Oct 2020 21:11:16 +0000 (UTC) Received: from localhost ([::1]:60018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYbg3-0000kT-FQ for larch@yhetil.org; Fri, 30 Oct 2020 17:11:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYbfr-0000jQ-01 for guix-patches@gnu.org; Fri, 30 Oct 2020 17:11:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48389) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYbfq-0005LC-Fs for guix-patches@gnu.org; Fri, 30 Oct 2020 17:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYbfq-0001Yv-BS for guix-patches@gnu.org; Fri, 30 Oct 2020 17:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44275] [PATCH v2] gnu: Add python-pydub. Resent-From: Tanguy LE CARROUR Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 30 Oct 2020 21:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44275 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Famulari Cc: 44275-done@debbugs.gnu.org Received: via spool by 44275-done@debbugs.gnu.org id=D44275.16040922415972 (code D ref 44275); Fri, 30 Oct 2020 21:11:02 +0000 Received: (at 44275-done) by debbugs.gnu.org; 30 Oct 2020 21:10:41 +0000 Received: from localhost ([127.0.0.1]:59935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYbfU-0001YG-T2 for submit@debbugs.gnu.org; Fri, 30 Oct 2020 17:10:41 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:33309) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYbfT-0001Y2-3v for 44275-done@debbugs.gnu.org; Fri, 30 Oct 2020 17:10:39 -0400 X-Originating-IP: 176.185.184.238 Received: from android-ca1f6f180ba97f5a (static-176-185-184-238.axione.abo.bbox.fr [176.185.184.238]) (Authenticated sender: tanguy@bioneland.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id ABD67C0004; Fri, 30 Oct 2020 21:10:31 +0000 (UTC) Date: Fri, 30 Oct 2020 22:10:12 +0100 User-Agent: K-9 Mail for Android In-Reply-To: <20201030204047.GA10794@jasmine.lan> References: <20201029090929.10508-1-tanguy@bioneland.org> <20201030204047.GA10794@jasmine.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Tanguy LE CARROUR Message-ID: <2E87DEE0-ECF4-441F-B69D-51911ABDBD7C@bioneland.org> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: sYa80rXIvnV8 Hi, Le 30 octobre 2020 21:40:47 CET, Leo Famulari a =C3= =A9crit : >On Thu, Oct 29, 2020 at 10:09:29AM +0100, Tanguy Le Carrour wrote: >> * gnu/packages/python-xyz=2Escm (python-pydub): New variable=2E > >Thanks! Pushed as 96767739a1d2222ed802dd5dcfa2bda1df85df77 > >> + (add-after 'unpack 'fix-ffmpeg-path >> + (lambda* (#:key inputs #:allow-other-keys) >> + (let ((ffmpeg (assoc-ref inputs "ffmpeg"))) >> + (substitute* '("pydub/utils=2Epy") >> + (("return \"ffmpeg\"") >> + (string-append "return \"" ffmpeg >"/bin/ffmpeg\"")) >> + (("return \"ffplay\"") >> + (string-append "return \"" ffmpeg >"/bin/ffplay\"")) >> + (("return \"ffprobe\"") >> + (string-append "return \"" ffmpeg >"/bin/ffprobe\"")) >> + (("warn\\(\"Couldn't find ff") "# warn\\(\"Couldn't >find ff")) >> + #t)))))) > >This solution is more correct than the one I suggested=2E Thanks! > >> + (home-page "http://pydub=2Ecom") > >I made this use HTTPS=2E > >> + (synopsis "Manipulate audio with an simple and easy high level >interface") >> + (description >> + "@code{pydub} makes it easy to manipulate audio=2E It relies on >> +@code{ffmpeg} to open various audio formats=2E") > >And I tweaked these to avoid so-called "marketing language" and to >clarify that pydub is in Python, which I think can be useful when >searching for packages=2E Thanks! --=20 Tanguy