diff --git a/pkgs/development/python-modules/soundfile/0001-Fix-build-on-linux-arm64.patch b/pkgs/development/python-modules/soundfile/0001-Fix-build-on-linux-arm64.patch deleted file mode 100644 index fa656fd2845e..000000000000 --- a/pkgs/development/python-modules/soundfile/0001-Fix-build-on-linux-arm64.patch +++ /dev/null @@ -1,25 +0,0 @@ -From b3eabd314f050a7491e82bc1560e8d8633569a06 Mon Sep 17 00:00:00 2001 -From: Zhong Jianxin -Date: Fri, 24 Feb 2023 11:03:41 +0800 -Subject: [PATCH] Fix build on linux arm64 - ---- - setup.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/setup.py b/setup.py -index ef99bcc..81c2dcb 100644 ---- a/setup.py -+++ b/setup.py -@@ -80,7 +80,7 @@ else: - elif platform == 'linux': - # the oldest mainline github runner available is ubuntu 20.04, - # which runs glibc 2.31: -- oses = 'manylinux_2_31_x86_64' -+ oses = 'manylinux_2_31_{}'.format(architecture0) - else: - pythons = 'py2.py3' - oses = 'any' --- -2.39.1 - diff --git a/pkgs/development/python-modules/soundfile/default.nix b/pkgs/development/python-modules/soundfile/default.nix index 3e421ab2ac86..4d095f06c9cb 100644 --- a/pkgs/development/python-modules/soundfile/default.nix +++ b/pkgs/development/python-modules/soundfile/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + setuptools, pytestCheckHook, numpy, libsndfile, @@ -12,29 +13,33 @@ buildPythonPackage rec { pname = "soundfile"; - version = "0.12.1"; - format = "setuptools"; + version = "0.13.0"; + pyproject = true; # https://github.com/bastibe/python-soundfile/issues/157 disabled = isPyPy || stdenv.hostPlatform.isi686; src = fetchPypi { inherit pname version; - hash = "sha256-6OEBeyzx3adnrvGdL9nuXr4H4FDUMPd6Cnxmugi4za4="; + hash = "sha256-6DOZ2L3n1zsRfDPWoeyFcTGDOPic5y9MPUV+l2h5g1U="; }; - patches = [ ./0001-Fix-build-on-linux-arm64.patch ]; - postPatch = '' substituteInPlace soundfile.py --replace "_find_library('sndfile')" "'${libsndfile.out}/lib/libsndfile${stdenv.hostPlatform.extensions.sharedLibrary}'" ''; - nativeCheckInputs = [ pytestCheckHook ]; - propagatedBuildInputs = [ - numpy - libsndfile + build-system = [ + setuptools cffi ]; - propagatedNativeBuildInputs = [ cffi ]; + + dependencies = [ + numpy + cffi + ]; + + pythonImportsCheck = [ "soundfile" ]; + + nativeCheckInputs = [ pytestCheckHook ]; meta = { description = "Audio library based on libsndfile, CFFI and NumPy";