python3Packages.samplerate: 0.2.3 -> 0.2.4 (#502347)
This commit is contained in:
@@ -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):
|
||||
Reference in New Issue
Block a user