1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 hatch-vcs,
7 pyserial,
8 pyserial-asyncio-fast,
9}:
10
11buildPythonPackage rec {
12 pname = "benqprojector";
13 version = "0.1.6";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "rrooggiieerr";
18 repo = "benqprojector.py";
19 tag = version;
20 hash = "sha256-Ys2C44kr5gd6tXO51OFRx4YVKVRGLfFPCYDFGt+gN0c=";
21 };
22
23 build-system = [
24 hatchling
25 hatch-vcs
26 ];
27
28 dependencies = [
29 pyserial
30 pyserial-asyncio-fast
31 ];
32
33 # Test cases require an actual serial/telnet connection to a projector
34 doCheck = false;
35
36 pythonImportsCheck = [ "benqprojector" ];
37
38 meta = rec {
39 description = "Python library to control BenQ projectors";
40 homepage = "https://github.com/rrooggiieerr/benqprojector.py";
41 changelog = "${homepage}/releases/tag/${version}";
42 license = lib.licenses.asl20;
43 maintainers = with lib.maintainers; [ sephalon ];
44 };
45}