1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, setuptools
5, wheel
6, pyusb
7, spidev
8}:
9
10buildPythonPackage rec {
11 pname = "pixel-ring";
12 version = "0.1.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "respeaker";
17 repo = "pixel_ring";
18 rev = version;
19 hash = "sha256-J9kScjD6Xon0YWGxFU881bIbjmDpY7cnWzJ8G0SOKaw=";
20 };
21
22 nativeBuildInputs = [
23 setuptools
24 wheel
25 ];
26
27 propagatedBuildInputs = [
28 pyusb
29 spidev
30 ];
31
32 dontUsePythonImportsCheck = true; # requires SPI access
33
34 doCheck = false; # no tests
35
36 meta = with lib; {
37 description = "RGB LED library for ReSpeaker 4 Mic Array, ReSpeaker V2 & ReSpeaker USB 6+1 Mic Array";
38 homepage = "https://github.com/respeaker/pixel_ring/tree/master";
39 license = licenses.gpl2Only;
40 maintainers = with maintainers; [ hexa ];
41 };
42}