1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 numpy,
7 pytestCheckHook,
8 stdenv,
9 darwin,
10}:
11
12buildPythonPackage rec {
13 pname = "aubio";
14 version = "0.4.9";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "aubio";
19 repo = "aubio";
20 rev = version;
21 hash = "sha256-RvzhB1kQNP0IbAygwH2RBi/kSyuFPAHgsiCATPeMHTo=";
22 };
23
24 buildInputs = lib.optionals stdenv.isDarwin (
25 with darwin.apple_sdk.frameworks;
26 [
27 Accelerate
28 AudioToolbox
29 CoreVideo
30 CoreGraphics
31 ]
32 );
33
34 build-system = [ setuptools ];
35
36 dependencies = [ numpy ];
37
38 nativeCheckInputs = [ pytestCheckHook ];
39
40 pythonImportsCheck = [ "aubio" ];
41
42 meta = with lib; {
43 description = "a library for audio and music analysis";
44 homepage = "https://aubio.org";
45 license = licenses.gpl3;
46 maintainers = with maintainers; [ ];
47 };
48}