at master 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch, 6 setuptools, 7 numpy, 8 pytestCheckHook, 9 stdenv, 10 darwin, 11}: 12 13buildPythonPackage rec { 14 pname = "aubio"; 15 version = "0.4.9"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "aubio"; 20 repo = "aubio"; 21 rev = version; 22 hash = "sha256-RvzhB1kQNP0IbAygwH2RBi/kSyuFPAHgsiCATPeMHTo="; 23 }; 24 25 patches = [ 26 (fetchpatch { 27 # fix "incompatible function pointer types initializing 'PyUFuncGenericFunction'" 28 name = "const-function-signature.patch"; 29 url = "https://github.com/aubio/aubio/commit/95ff046c698156f21e2ca0d1d8a02c23ab76969f.patch"; 30 hash = "sha256-qKcIPjpcZUizSN/t96WOiOn+IlsrlC0+g7gW77KejH0="; 31 }) 32 ]; 33 34 build-system = [ setuptools ]; 35 36 dependencies = [ numpy ]; 37 38 nativeCheckInputs = [ pytestCheckHook ]; 39 40 pythonImportsCheck = [ "aubio" ]; 41 42 disabledTests = [ 43 # https://github.com/aubio/aubio/issues/413 44 "test_assign_cvec_phas_slice" 45 ]; 46 47 meta = with lib; { 48 description = "Library for audio and music analysis"; 49 homepage = "https://aubio.org"; 50 changelog = "https://github.com/aubio/aubio/blob/${version}/ChangeLog"; 51 license = licenses.gpl3Plus; 52 maintainers = [ ]; 53 }; 54}