2020-10-17 20:47:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, numpy
|
|
|
|
, pytestCheckHook
|
2021-12-13 23:09:05 +00:00
|
|
|
, stdenv
|
|
|
|
, darwin
|
2020-10-17 20:47:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aubio";
|
|
|
|
version = "0.4.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0fhxikvlr010nbh02g455d5y8bq6j5yw180cdh4gsd0hb43y3z26";
|
|
|
|
};
|
|
|
|
|
2021-12-13 23:09:05 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Accelerate AudioToolbox CoreVideo CoreGraphics ]);
|
|
|
|
|
2020-10-17 20:47:05 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2020-10-17 20:47:05 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "aubio" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "a library for audio and music analysis";
|
|
|
|
homepage = "https://aubio.org";
|
2020-10-17 22:46:21 +00:00
|
|
|
license = licenses.gpl3;
|
2020-10-17 20:47:05 +00:00
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|