1{
2 lib,
3 bleak,
4 click,
5 buildPythonPackage,
6 fetchFromGitHub,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pyzerproc";
12 version = "0.4.12";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "emlove";
17 repo = "pyzerproc";
18 tag = version;
19 hash = "sha256-vS0sk/KjDhWispZvCuGlmVLLfeFymHqxwNzNqNRhg6k=";
20 };
21
22 patches = [ ./bleak-compat.patch ];
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 bleak
28 click
29 ];
30
31 doCheck = false; # tries to access dbus, which leads to FileNotFoundError
32
33 pythonImportsCheck = [ "pyzerproc" ];
34
35 meta = with lib; {
36 description = "Python library to control Zerproc Bluetooth LED smart string lights";
37 mainProgram = "pyzerproc";
38 homepage = "https://github.com/emlove/pyzerproc";
39 license = with licenses; [ asl20 ];
40 maintainers = with maintainers; [ fab ];
41 platforms = platforms.linux;
42 };
43}