From patchwork Fri Aug 18 15:35:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosha X-Patchwork-Id: 16025 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 2A19B27BBE2; Fri, 18 Aug 2023 16:37:38 +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.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED 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 2E04E27BBE9 for ; Fri, 18 Aug 2023 16:37:34 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qX1XA-0004jT-9L; Fri, 18 Aug 2023 11:37:08 -0400 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 1qX1X8-0004jK-TQ for guix-patches@gnu.org; Fri, 18 Aug 2023 11:37:06 -0400 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 1qX1X8-0006fB-Kz for guix-patches@gnu.org; Fri, 18 Aug 2023 11:37:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qX1X4-0007Iv-Sj; Fri, 18 Aug 2023 11:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65368] [PATCH 1/5] gnu: Add python-wavefile. Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Fri, 18 Aug 2023 15:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65368 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65368@debbugs.gnu.org Cc: Sughosha , Lars-Dominik Braun , jgart X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Lars-Dominik Braun , jgart Received: via spool by submit@debbugs.gnu.org id=B.169237300128019 (code B ref -1); Fri, 18 Aug 2023 15:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Aug 2023 15:36:41 +0000 Received: from localhost ([127.0.0.1]:48536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qX1Wi-0007Hq-RF for submit@debbugs.gnu.org; Fri, 18 Aug 2023 11:36:41 -0400 Received: from lists.gnu.org ([2001:470:142::17]:42512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qX1Wg-0007Hb-Tl for submit@debbugs.gnu.org; Fri, 18 Aug 2023 11:36:39 -0400 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 1qX1WZ-00042E-E2 for guix-patches@gnu.org; Fri, 18 Aug 2023 11:36:31 -0400 Received: from layka.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qX1WW-0006a8-2m for guix-patches@gnu.org; Fri, 18 Aug 2023 11:36:30 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 2F1F8410BC; Fri, 18 Aug 2023 17:36:26 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IvDs9D23rx3s; Fri, 18 Aug 2023 17:36:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1692372984; bh=Ig4swb4AF6pYPYvyRWBVZLM5FsPLN2xdZqSWr3P+sM4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=amzZk6EkSlM94Y5sgvp1ZbAaAQvYh61JN6dsPZYQ15SXUjcjv85Bv2jtZAoujNpv2 U5CKKkvu0b1Vd5xGMspvDPI7zNbBdnCwD333PLoWkZ9U31ALJsupB/0/CjEGYuuNnW 6va6wp7EUxB+n9P/CAkZWV6Kj7edPrB6sVksCLIypbNcYjuXkllSy4tYIOwnuh6/GF /AuppBVEdIRDdP1IFPESwsKHk9c6b8FAp7wvFrBFxLW+bFNUSX/349I4mNP1OVTsMr Y4D83udxu/dic8ppPjxLIyneA0y8YjZowZzY3itkR+rVc0VjjkLGz+Xp0ZxEFZdCaa RZEK3lCQ48hkg== Date: Fri, 18 Aug 2023 17:35:38 +0200 Message-ID: <3364f152e8f31e4ec06d8e9bb0c126a1f59e1d70.1692372644.git.sughosha@disroot.org> In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=178.21.23.139; envelope-from=sughosha@disroot.org; helo=layka.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Reply-to: Sughosha X-ACL-Warn: , Sughosha via Guix-patches X-Patchwork-Original-From: Sughosha via Guix-patches via From: Sughosha 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 * gnu/packages/python-xyz.scm (python-wavefile): New variable. --- gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index c5e170b628..7f8c976753 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -163,6 +163,7 @@ (define-module (gnu packages python-xyz) #:use-module (gnu packages algebra) #:use-module (gnu packages astronomy) #:use-module (gnu packages attr) + #:use-module (gnu packages audio) #:use-module (gnu packages backup) #:use-module (gnu packages base) #:use-module (gnu packages bash) @@ -230,6 +231,7 @@ (define-module (gnu packages python-xyz) #:use-module (gnu packages photo) #:use-module (gnu packages pkg-config) #:use-module (gnu packages protobuf) + #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages python-build) #:use-module (gnu packages python-check) @@ -1711,6 +1713,37 @@ (define-public python-pymediainfo access the technical and tag data for video and audio files.") (license license:expat))) +(define-public python-wavefile + (package + (name "python-wavefile") + (version "1.5") + (source (origin + (method url-fetch) + (uri (pypi-uri "wavefile" version)) + (sha256 + (base32 + "02qcms8xx24r1d14idwyx04sw9ydp6rivff5s64hgp668mnfdar3")))) + (build-system pyproject-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-libsndfile-path + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "wavefile/libsndfile.py" + (("libsndfile\\.so") + (search-input-file inputs "/lib/libsndfile.so"))))) + (add-before 'check 'check-setup + (lambda _ + (setenv "HOME" "/tmp") + (setenv "LD_LIBRARY_PATH" (getenv "LIBRARY_PATH"))))))) + (inputs + (list libsndfile)) + (propagated-inputs (list python-numpy python-pyaudio)) + (home-page "https://github.com/vokimon/python-wavefile") + (synopsis "Pythonic wave file reader and writer") + (description "This package provides pythonic wave file reader and writer.") + (license license:gpl3+))) + (define-public python-psutil (package (name "python-psutil")