Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 781 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, numpy 5, pytestCheckHook 6, stdenv 7, darwin 8}: 9 10buildPythonPackage rec { 11 pname = "aubio"; 12 version = "0.4.9"; 13 14 src = fetchFromGitHub { 15 owner = pname; 16 repo = pname; 17 rev = version; 18 sha256 = "0fhxikvlr010nbh02g455d5y8bq6j5yw180cdh4gsd0hb43y3z26"; 19 }; 20 21 buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Accelerate AudioToolbox CoreVideo CoreGraphics ]); 22 23 propagatedBuildInputs = [ 24 numpy 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ "aubio" ]; 32 33 meta = with lib; { 34 description = "a library for audio and music analysis"; 35 homepage = "https://aubio.org"; 36 license = licenses.gpl3; 37 maintainers = with maintainers; [ hexa ]; 38 }; 39}