1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 hatch-vcs,
5 hatchling,
6 lib,
7}:
8
9buildPythonPackage rec {
10 pname = "bosch-alarm-mode2";
11 version = "0.4.6";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "mag1024";
16 repo = "bosch-alarm-mode2";
17 tag = "v${version}";
18 hash = "sha256-oTGkEguN4EFJI5+UhqxKBN1x2Ppf9wQ0AeYbiLi1fhk=";
19 };
20
21 build-system = [
22 hatch-vcs
23 hatchling
24 ];
25
26 pythonImportsCheck = [ "bosch_alarm_mode2" ];
27
28 # upstream has no tests
29 doCheck = false;
30
31 meta = {
32 description = "Async Python library for interacting with Bosch Alarm Panels supporting the 'Mode 2' API";
33 homepage = "https://github.com/mag1024/bosch-alarm-mode2";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ dotlambda ];
36 };
37}