Unverified Commit bf7f2013 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python3Packages.samplerate: 0.2.3 -> 0.2.4 (#502347)

parents 31fc0b92 8b822ed1
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -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
+0 −13
Original line number Diff line number Diff line
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):