14 # TODO: recheck after 1.59
15 miniaudio' = miniaudio.overrideAttrs (oldAttrs: rec {
16 version = "0.11.16"; # cffi breakage with 0.11.17
17 src = fetchFromGitHub {
18 inherit (oldAttrs.src) owner repo;
19 rev = "refs/tags/${version}";
20 hash = "sha256-POe/dYPJ25RKNGIhaLoqxm9JJ08MrTyHVN4NmaGOdwM=";
24 buildPythonPackage rec {
28 disabled = pythonOlder "3.6";
30 format = "setuptools";
32 src = fetchFromGitHub {
35 rev = "refs/tags/v${version}";
36 hash = "sha256-tMQOGqEThtownW3cnNpCzWye0Uo/Es7E8abVySo1QnQ=";
41 ln -s ${miniaudio'} miniaudio
42 substituteInPlace build_ffi_module.py \
43 --replace "miniaudio/stb_vorbis.c" "miniaudio/extras/stb_vorbis.c";
44 substituteInPlace miniaudio.c \
45 --replace "miniaudio/stb_vorbis.c" "miniaudio/extras/stb_vorbis.c";
48 buildInputs = lib.optionals stdenv.isDarwin [
53 propagatedNativeBuildInputs = [ cffi ];
54 propagatedBuildInputs = [ cffi ];
60 pythonImportsCheck = [ "miniaudio" ];
63 description = "Python bindings for the miniaudio library and its decoders";
64 homepage = "https://github.com/irmen/pyminiaudio";
65 license = licenses.mit;
66 maintainers = with maintainers; [ dotlambda ];