python3Packages.samplerate: 0.2.3 -> 0.2.4

https://github.com/tuxu/python-samplerate/releases/tag/v0.2.4
This commit is contained in:
Martin Weinelt
2026-03-23 00:41:15 +01:00
parent 325aa771e3
commit 8b822ed1bd
2 changed files with 2 additions and 20 deletions
@@ -23,21 +23,16 @@
buildPythonPackage (finalAttrs: {
pname = "samplerate";
version = "0.2.3";
version = "0.2.4";
pyproject = true;
src = fetchFromGitHub {
owner = "tuxu";
repo = "python-samplerate";
tag = "v${finalAttrs.version}";
hash = "sha256-7FAdIqsYCapmEAYiAuoS5m/jFExXZX3hn3kwxn9NWEc=";
hash = "sha256-wetpPAoCenzOo6pD3+F0YNb/fc1BvaeKiw325C19rS0=";
};
patches = [
# https://github.com/tuxu/python-samplerate/pull/33
./numpy-2.4-compat.patch
];
# unvendor pybind11, libsamplerate
postPatch = ''
rm -r external
@@ -1,13 +0,0 @@
diff --git a/tests/test_api.py b/tests/test_api.py
index 1fef8de..f5b8fac 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -48,7 +48,7 @@ def test_simple(data, converter_type, ratio=2.0):
def test_process(data, converter_type, ratio=2.0):
num_channels, input_data = data
src = samplerate.Resampler(converter_type, num_channels)
- src.process(input_data, ratio)
+ src.process(input_data.copy(), ratio)
def test_match(data, converter_type, ratio=2.0):