python3Packages.soundfile: 0.12.1 -> 0.13.0

This commit is contained in:
Martin Weinelt
2025-01-27 10:57:26 +01:00
parent c38490d9eb
commit 64abea171c
2 changed files with 15 additions and 35 deletions
@@ -1,25 +0,0 @@
From b3eabd314f050a7491e82bc1560e8d8633569a06 Mon Sep 17 00:00:00 2001
From: Zhong Jianxin <azuwis@gmail.com>
Date: Fri, 24 Feb 2023 11:03:41 +0800
Subject: [PATCH] Fix build on linux arm64
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index ef99bcc..81c2dcb 100644
--- a/setup.py
+++ b/setup.py
@@ -80,7 +80,7 @@ else:
elif platform == 'linux':
# the oldest mainline github runner available is ubuntu 20.04,
# which runs glibc 2.31:
- oses = 'manylinux_2_31_x86_64'
+ oses = 'manylinux_2_31_{}'.format(architecture0)
else:
pythons = 'py2.py3'
oses = 'any'
--
2.39.1
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pytestCheckHook,
numpy,
libsndfile,
@@ -12,29 +13,33 @@
buildPythonPackage rec {
pname = "soundfile";
version = "0.12.1";
format = "setuptools";
version = "0.13.0";
pyproject = true;
# https://github.com/bastibe/python-soundfile/issues/157
disabled = isPyPy || stdenv.hostPlatform.isi686;
src = fetchPypi {
inherit pname version;
hash = "sha256-6OEBeyzx3adnrvGdL9nuXr4H4FDUMPd6Cnxmugi4za4=";
hash = "sha256-6DOZ2L3n1zsRfDPWoeyFcTGDOPic5y9MPUV+l2h5g1U=";
};
patches = [ ./0001-Fix-build-on-linux-arm64.patch ];
postPatch = ''
substituteInPlace soundfile.py --replace "_find_library('sndfile')" "'${libsndfile.out}/lib/libsndfile${stdenv.hostPlatform.extensions.sharedLibrary}'"
'';
nativeCheckInputs = [ pytestCheckHook ];
propagatedBuildInputs = [
numpy
libsndfile
build-system = [
setuptools
cffi
];
propagatedNativeBuildInputs = [ cffi ];
dependencies = [
numpy
cffi
];
pythonImportsCheck = [ "soundfile" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Audio library based on libsndfile, CFFI and NumPy";