mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-28 21:15:57 +00:00
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
ffmpeg-headless,
|
|
libsamplerate,
|
|
libsndfile,
|
|
meson-python,
|
|
numpy,
|
|
pkg-config,
|
|
pytestCheckHook,
|
|
rubberband,
|
|
setuptools,
|
|
stdenv,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "aubio-ledfx";
|
|
version = "0.4.11";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LedFx";
|
|
repo = "aubio-ledfx";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-ec6QiTj1AOza+ggJPl3EULNDB/rrpCDZW0HaSywy/4E=";
|
|
};
|
|
|
|
build-system = [
|
|
meson-python
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [ numpy ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
libsamplerate
|
|
libsndfile
|
|
]
|
|
++ lib.optionals stdenv.targetPlatform.isLinux [
|
|
ffmpeg-headless
|
|
]
|
|
++ lib.optionals (!stdenv.targetPlatform.isLinux) [
|
|
rubberband
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "aubio" ];
|
|
|
|
meta = {
|
|
description = "Collection of tools for music analysis";
|
|
homepage = "https://github.com/LedFx/aubio-ledfx";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ SuperSandro2000 ];
|
|
};
|
|
})
|