summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/benqprojector/default.nix
blob: d923e31a0d5c1a3790dd148c366cc05b91431f27 (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
44
45
46
47
{
  lib,
  aiofiles,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  hatch-vcs,
  pyserial,
  pyserial-asyncio-fast,
}:

buildPythonPackage rec {
  pname = "benqprojector";
  version = "0.1.9";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "rrooggiieerr";
    repo = "benqprojector.py";
    tag = version;
    hash = "sha256-oG6djfmBnZyb4YpB6zqzHlcmQx+l+LF5xwCdf/NOb1Q=";
  };

  build-system = [
    hatchling
    hatch-vcs
  ];

  dependencies = [
    aiofiles
    pyserial
    pyserial-asyncio-fast
  ];

  # Test cases require an actual serial/telnet connection to a projector
  doCheck = false;

  pythonImportsCheck = [ "benqprojector" ];

  meta = rec {
    description = "Python library to control BenQ projectors";
    homepage = "https://github.com/rrooggiieerr/benqprojector.py";
    changelog = "${homepage}/releases/tag/${src.tag}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ sephalon ];
  };
}