blob: ab73bccb8a688fe7c6990b573b80f91279cbe3d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
cffi,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "miniaudio";
version = "1.61";
pyproject = true;
src = fetchFromGitHub {
owner = "irmen";
repo = "pyminiaudio";
tag = "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 ];
};
}
|