@@ -10,13 +10,13 @@
1010}:
1111
1212buildPythonPackage rec {
13− pname = "PySoundFile";
14− version = "0.9.0.post1";
15− name = pname + "-" + version;
13+ pname = "soundfile";
14+ version = "0.10.2";
1615
1716 src = fetchPypi {
18− inherit pname version;
19− sha256 = "43dd46a2afc0484c26930a7e59eef9365cee81bce7a4aadc5699f788f60d32c3";
17+ pname = "SoundFile";
18+ inherit version;
19+ sha256 = "0w8mjadairg6av88090kwsridd0k115672b91zlcmf37r0c64zv3";
2020 };
2121
2222 checkInputs = [ pytest ];
@@ -29,10 +29,11 @@ buildPythonPackage rec {
2929 maintainers = with lib.maintainers; [ fridh ];
3030 };
3131
32− prePatch = ''
33− substituteInPlace soundfile.py --replace "'sndfile'" "'${libsndfile.out}/lib/libsndfile.so'"
32+ postPatch = ''
33+ substituteInPlace soundfile.py --replace "_find_library('sndfile')" "'${libsndfile.out}/lib/libsndfile${stdenv.hostPlatform.extensions.sharedLibrary}'"
3434 '';
3535
3636 # https://github.com/bastibe/PySoundFile/issues/157
3737 disabled = isPyPy || stdenv.isi686;
38+
3839}