1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 hatchling,
5 lib,
6 paho-mqtt,
7 voluptuous,
8}:
9
10buildPythonPackage rec {
11 pname = "pypglab";
12 version = "0.0.5";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "pglab-electronics";
17 repo = "pypglab";
18 tag = version;
19 hash = "sha256-nnLGFVV+aWkaE7RnAzLHji/tKxIiA9qJS/BUTv3KNeo=";
20 };
21
22 build-system = [ hatchling ];
23
24 dependencies = [
25 voluptuous
26 paho-mqtt
27 ];
28
29 pythonImportsCheck = [ "pypglab" ];
30
31 # tests require physical hardware
32 doCheck = false;
33
34 meta = {
35 description = "Asynchronous Python library to communicate with PG LAB Electronics devices over MQTT";
36 homepage = "https://github.com/pglab-electronics/pypglab";
37 license = lib.licenses.mit;
38 maintainers = with lib.maintainers; [ dotlambda ];
39 };
40}