2020-10-19 00:13:06 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, numpy
|
|
|
|
, pytestCheckHook
|
2021-12-21 02:18:32 +00:00
|
|
|
, stdenv
|
|
|
|
, darwin
|
2020-10-19 00:13:06 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aubio";
|
|
|
|
version = "0.4.9";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-10-19 00:13:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0fhxikvlr010nbh02g455d5y8bq6j5yw180cdh4gsd0hb43y3z26";
|
|
|
|
};
|
|
|
|
|
2021-12-21 02:18:32 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Accelerate AudioToolbox CoreVideo CoreGraphics ]);
|
|
|
|
|
2020-10-19 00:13:06 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-10-19 00:13:06 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "aubio" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "a library for audio and music analysis";
|
|
|
|
homepage = "https://aubio.org";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|