Files
nixpkgs/pkgs/development/python-modules/miniaudio/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

41 lines
923 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
cffi,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "miniaudio";
version = "1.61";
pyproject = true;
src = fetchFromGitHub {
owner = "irmen";
repo = "pyminiaudio";
rev = "refs/tags/v${version}";
hash = "sha256-H3o2IWGuMqLrJTzQ7w636Ito6f57WBtMXpXXzrZ7UD8=";
};
# TODO: Properly unvendor miniaudio c library
build-system = [ setuptools ];
propagatedNativeBuildInputs = [ cffi ];
dependencies = [ cffi ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "miniaudio" ];
meta = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}