summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyzerproc/default.nix
blob: eff24f89ef836d039c46b291bbf3f476eed4852d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  lib,
  bleak,
  click,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pyzerproc";
  version = "0.4.12";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "emlove";
    repo = "pyzerproc";
    tag = version;
    hash = "sha256-vS0sk/KjDhWispZvCuGlmVLLfeFymHqxwNzNqNRhg6k=";
  };

  patches = [ ./bleak-compat.patch ];

  build-system = [ setuptools ];

  dependencies = [
    bleak
    click
  ];

  doCheck = false; # tries to access dbus, which leads to FileNotFoundError

  pythonImportsCheck = [ "pyzerproc" ];

  meta = {
    description = "Python library to control Zerproc Bluetooth LED smart string lights";
    mainProgram = "pyzerproc";
    homepage = "https://github.com/emlove/pyzerproc";
    license = with lib.licenses; [ asl20 ];
    maintainers = with lib.maintainers; [ fab ];
    platforms = lib.platforms.linux;
  };
}