From 8b822ed1bdff1b635f35b3b7d2b8c64c30b8a36c Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 23 Mar 2026 00:41:15 +0100 Subject: [PATCH] python3Packages.samplerate: 0.2.3 -> 0.2.4 https://github.com/tuxu/python-samplerate/releases/tag/v0.2.4 --- .../python-modules/samplerate/default.nix | 9 ++------- .../samplerate/numpy-2.4-compat.patch | 13 ------------- 2 files changed, 2 insertions(+), 20 deletions(-) delete mode 100644 pkgs/development/python-modules/samplerate/numpy-2.4-compat.patch diff --git a/pkgs/development/python-modules/samplerate/default.nix b/pkgs/development/python-modules/samplerate/default.nix index 2812c7ba4c07..99cf2ec1e647 100644 --- a/pkgs/development/python-modules/samplerate/default.nix +++ b/pkgs/development/python-modules/samplerate/default.nix @@ -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 diff --git a/pkgs/development/python-modules/samplerate/numpy-2.4-compat.patch b/pkgs/development/python-modules/samplerate/numpy-2.4-compat.patch deleted file mode 100644 index 6e980aa31ba9..000000000000 --- a/pkgs/development/python-modules/samplerate/numpy-2.4-compat.patch +++ /dev/null @@ -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):