2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonPackage rec {
|
|
|
|
pname = "ledfx";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "2.0.67";
|
2023-04-29 16:46:19 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = python3.pkgs.fetchPypi {
|
|
|
|
inherit pname version;
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-lFxAMjglQZXCySr83PtvStU6hw2ucQu+rSjIHo1yZBk=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace '"openrgb-python~=0.2.10",' "" \
|
|
|
|
--replace "'rpi-ws281x>=4.3.0; platform_system == \"Linux\"'," "" \
|
2023-05-24 13:37:59 +00:00
|
|
|
--replace '"sentry-sdk==1.14.0",' "" \
|
2023-04-29 16:46:19 +00:00
|
|
|
--replace "~=" ">="
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
aiohttp
|
|
|
|
aiohttp-cors
|
|
|
|
aubio
|
|
|
|
certifi
|
|
|
|
cython
|
|
|
|
flux-led
|
|
|
|
icmplib
|
|
|
|
multidict
|
|
|
|
numpy
|
|
|
|
# openrgb-python # not packaged
|
|
|
|
paho-mqtt
|
|
|
|
pillow
|
|
|
|
psutil
|
|
|
|
pyserial
|
|
|
|
pystray
|
2023-05-24 13:37:59 +00:00
|
|
|
python-rtmidi
|
2023-04-29 16:46:19 +00:00
|
|
|
# rpi-ws281x # not packaged
|
|
|
|
requests
|
|
|
|
sacn
|
|
|
|
samplerate
|
|
|
|
sentry-sdk
|
|
|
|
sounddevice
|
|
|
|
uvloop
|
|
|
|
voluptuous
|
|
|
|
zeroconf
|
|
|
|
];
|
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "LedFx is a network based LED effect controller with support for advanced real-time audio effects";
|
|
|
|
homepage = "https://github.com/LedFx/LedFx";
|
|
|
|
changelog = "https://github.com/LedFx/LedFx/blob/${version}/CHANGELOG.rst";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = teams.c3d2.members;
|
|
|
|
};
|
|
|
|
}
|