2020-10-19 00:13:06 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2024-05-15 15:35:15 +00:00
|
|
|
, setuptools
|
2020-10-19 00:13:06 +00:00
|
|
|
, 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-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2020-10-19 00:13:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-05-15 15:35:15 +00:00
|
|
|
owner = "aubio";
|
|
|
|
repo = "aubio";
|
2020-10-19 00:13:06 +00:00
|
|
|
rev = version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-RvzhB1kQNP0IbAygwH2RBi/kSyuFPAHgsiCATPeMHTo=";
|
2020-10-19 00:13:06 +00:00
|
|
|
};
|
|
|
|
|
2021-12-21 02:18:32 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Accelerate AudioToolbox CoreVideo CoreGraphics ]);
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2020-10-19 00:13:06 +00:00
|
|
|
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;
|
2024-01-13 08:15:51 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-10-19 00:13:06 +00:00
|
|
|
};
|
|
|
|
}
|