Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / wavefile / libsndfile.py.patch
blob807221c48a3eb4264d6356be74f3b57676c81273
1 diff --git a/wavefile/libsndfile.py b/wavefile/libsndfile.py
2 index 89c670f..fa19e1d 100644
3 --- a/wavefile/libsndfile.py
4 +++ b/wavefile/libsndfile.py
5 @@ -17,20 +17,7 @@ import ctypes as ct
6 import numpy as np
8 def _libfilename():
9 - for system, libname in [
10 - ('win32', 'libsndfile-1'),
11 - ('cygwin', 'libsndfile-1.dll'),
12 - ('darwin', 'libsndfile.dylib'),
13 - ('linux', 'libsndfile.so.1'),
14 - ('freebsd', 'libsndfile.so.1'),
15 - ('', 'libsndfile'),
16 - ]:
17 - if system in sys.platform:
18 - return libname
19 - raise Exception(
20 - 'No libsndfile dll name mapping for platform {}.'
21 - .format(sys.platform)
22 - )
23 + return "@libsndfile@"
25 dllName = _libfilename()
26 _lib=None