nixpkgs/pkgs/applications/audio/ledfx/default.nix

71 lines
1.3 KiB
Nix
Raw Normal View History

2023-04-15 01:07:45 +02:00
{ lib
, fetchPypi
, python3
2023-04-15 01:07:45 +02:00
}:
python3.pkgs.buildPythonPackage rec {
pname = "ledfx";
2023-12-25 18:52:09 +01:00
version = "2.0.86";
2023-11-25 00:25:58 +01:00
pyproject= true;
2023-04-15 01:07:45 +02:00
src = fetchPypi {
2023-04-15 01:07:45 +02:00
inherit pname version;
2023-12-25 18:52:09 +01:00
hash = "sha256-miOGMsrvK3A3SYnd+i/lqB+9GOHtO4F3RW8NkxDgFqU=";
2023-04-15 01:07:45 +02:00
};
postPatch = ''
substituteInPlace setup.py \
--replace "'rpi-ws281x>=4.3.0; platform_system == \"Linux\"'," "" \
2023-12-25 18:52:09 +01:00
--replace "sentry-sdk==1.38.0" "sentry-sdk" \
2023-04-15 01:07:45 +02:00
--replace "~=" ">="
'';
2023-11-25 00:25:58 +01:00
nativeBuildInputs = with python3.pkgs; [
2024-01-13 10:41:23 +01:00
setuptools
2023-11-25 00:25:58 +01:00
];
2023-04-15 01:07:45 +02:00
propagatedBuildInputs = with python3.pkgs; [
aiohttp
aiohttp-cors
aubio
certifi
cython
flux-led
icmplib
2023-12-25 18:52:09 +01:00
mss
2023-04-15 01:07:45 +02:00
multidict
numpy
2023-06-30 22:11:54 +02:00
openrgb-python
2023-04-15 01:07:45 +02:00
paho-mqtt
pillow
psutil
2023-12-25 18:52:09 +01:00
pybase64
2023-04-15 01:07:45 +02:00
pyserial
pystray
python-mbedtls
python-osc
2023-05-04 00:14:03 +02:00
python-rtmidi
2023-04-15 01:07:45 +02:00
# rpi-ws281x # not packaged
requests
sacn
samplerate
sentry-sdk
2024-01-13 10:41:23 +01:00
setuptools
2023-04-15 01:07:45 +02:00
sounddevice
uvloop
voluptuous
zeroconf
];
2024-01-13 10:41:23 +01:00
# Project has no tests
2023-04-15 01:07:45 +02:00
doCheck = false;
meta = with lib; {
description = "Network based LED effect controller with support for advanced real-time audio effects";
2023-04-15 01:07:45 +02:00
homepage = "https://github.com/LedFx/LedFx";
changelog = "https://github.com/LedFx/LedFx/blob/${version}/CHANGELOG.rst";
license = licenses.gpl3Only;
maintainers = teams.c3d2.members;
};
}