Loading pkgs/development/python-modules/samplerate/default.nix +2 −7 Original line number Diff line number Diff line Loading @@ -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 Loading pkgs/development/python-modules/samplerate/numpy-2.4-compat.patchdeleted 100644 → 0 +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): Loading
pkgs/development/python-modules/samplerate/default.nix +2 −7 Original line number Diff line number Diff line Loading @@ -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 Loading
pkgs/development/python-modules/samplerate/numpy-2.4-compat.patchdeleted 100644 → 0 +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):