pianonix: try getting piano-led-visualizer to run
Still did not work, using raspberrypi os
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
{
|
||||
lib,
|
||||
python3,
|
||||
callPackage,
|
||||
fetchFromGitHub,
|
||||
...
|
||||
}: let
|
||||
pythonPackages = python3.pkgs;
|
||||
rpi-ws281x-python = callPackage ../rpi-ws281x-python {inherit python3;};
|
||||
in
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
pname = "piano-led-visualizer";
|
||||
@@ -36,7 +38,8 @@ in
|
||||
waitress
|
||||
websockets
|
||||
werkzeug
|
||||
# rpi_ws281x
|
||||
|
||||
rpi-ws281x-python
|
||||
];
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
@@ -10,15 +10,12 @@ python3.pkgs.buildPythonPackage rec {
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rpi-ws281x";
|
||||
repo = "rpi-ws281x-pytho";
|
||||
repo = "rpi-ws281x-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-tnjvFDBa+sNX6dK6/I1/rRt62k15kTP+9J8eyFRFs/I=";
|
||||
sha256 = "sha256-CVPibDs1QLeXhtoEBw3JplKIIUpzahjgJKy8GVy99Wk=";
|
||||
fetchSubmodules = true;
|
||||
deepClone = true;
|
||||
};
|
||||
|
||||
# sourceRoot = "${src}/library";
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
@@ -30,9 +27,6 @@ python3.pkgs.buildPythonPackage rec {
|
||||
sourceRoot="$sourceRoot/library"
|
||||
'';
|
||||
|
||||
# Some of the bindings compile C code, so you may need these
|
||||
nativeBuildInputs = [python3.pkgs.setuptools pkgs.scons];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python bindings for the rpi_ws281x C library";
|
||||
homepage = "https://github.com/rpi-ws281x/rpi-ws281x-python";
|
||||
|
||||
Reference in New Issue
Block a user