5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
45 lines
841 B
Nix
45 lines
841 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, numpy
|
|
, pytestCheckHook
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aubio";
|
|
version = "0.4.9";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aubio";
|
|
repo = "aubio";
|
|
rev = version;
|
|
hash = "sha256-RvzhB1kQNP0IbAygwH2RBi/kSyuFPAHgsiCATPeMHTo=";
|
|
};
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Accelerate AudioToolbox CoreVideo CoreGraphics ]);
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
numpy
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "aubio" ];
|
|
|
|
meta = with lib; {
|
|
description = "a library for audio and music analysis";
|
|
homepage = "https://aubio.org";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|