python312Packages.miniaudio: 1.59 -> 1.60

Diff: https://github.com/irmen/pyminiaudio/compare/refs/tags/v1.59...v1.60

Changelog: https://github.com/irmen/pyminiaudio/releases/tag/v1.60
This commit is contained in:
Robert Schütz 2024-07-15 00:54:49 -07:00
parent 50417bcb44
commit 4a5cc1d9ae

View File

@ -2,8 +2,8 @@
lib,
stdenv,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
miniaudio,
cffi,
pytestCheckHook,
@ -24,41 +24,41 @@ let
in
buildPythonPackage rec {
pname = "miniaudio";
version = "1.59";
disabled = pythonOlder "3.6";
format = "setuptools";
version = "1.60";
pyproject = true;
src = fetchFromGitHub {
owner = "irmen";
repo = "pyminiaudio";
rev = "refs/tags/v${version}";
hash = "sha256-tMQOGqEThtownW3cnNpCzWye0Uo/Es7E8abVySo1QnQ=";
hash = "sha256-Bw9zq98RJmfp6KoZ43SNsh7vVrhUe6GNzcM4flxPJ60=";
};
postPatch = ''
rm -r miniaudio
ln -s ${miniaudio'} miniaudio
substituteInPlace build_ffi_module.py \
--replace "miniaudio/stb_vorbis.c" "miniaudio/extras/stb_vorbis.c";
--replace-fail "miniaudio/stb_vorbis.c" "miniaudio/extras/stb_vorbis.c";
substituteInPlace miniaudio.c \
--replace "miniaudio/stb_vorbis.c" "miniaudio/extras/stb_vorbis.c";
--replace-fail "miniaudio/stb_vorbis.c" "miniaudio/extras/stb_vorbis.c";
'';
build-system = [ setuptools ];
buildInputs = lib.optionals stdenv.isDarwin [
AudioToolbox
CoreAudio
];
propagatedNativeBuildInputs = [ cffi ];
propagatedBuildInputs = [ cffi ];
dependencies = [ cffi ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "miniaudio" ];
meta = with lib; {
changelog = "https://github.com/irmen/pyminiaudio/releases/tag/v${version}";
description = "Python bindings for the miniaudio library and its decoders";
homepage = "https://github.com/irmen/pyminiaudio";
license = licenses.mit;