Skip to content

Commit 46385c7

Browse files
authored
Merge pull request #333905 from dotlambda/python3Packages.flexit-bacnet
home-assistant: support flexit_bacnet component
2 parents 182792a + de54a32 commit 46385c7

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
buildPythonPackage,
3+
fetchFromGitHub,
4+
lib,
5+
setuptools,
6+
}:
7+
8+
buildPythonPackage rec {
9+
pname = "flexit-bacnet";
10+
version = "2.2.1";
11+
pyproject = true;
12+
13+
src = fetchFromGitHub {
14+
owner = "piotrbulinski";
15+
repo = "flexit_bacnet";
16+
rev = "refs/tags/${version}";
17+
hash = "sha256-Cy/WHKtJoZWSFOs+9rBYSLqZTF/68WRM1HiYXDyb9KM=";
18+
};
19+
20+
build-system = [ setuptools ];
21+
22+
pythonImportsCheck = [ "flexit_bacnet" ];
23+
24+
# upstream has no tests
25+
doCheck = false;
26+
27+
meta = {
28+
changelog = "https://github.com/piotrbulinski/flexit_bacnet/releases/tag/${version}";
29+
description = "Client BACnet library for Flexit Nordic series of air handling units";
30+
homepage = "https://github.com/piotrbulinski/flexit_bacnet";
31+
license = lib.licenses.mit;
32+
maintainers = with lib.maintainers; [ dotlambda ];
33+
};
34+
}

pkgs/servers/home-assistant/component-packages.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,8 @@
12651265
pymodbus
12661266
];
12671267
"flexit_bacnet" = ps: with ps; [
1268-
]; # missing inputs: flexit_bacnet
1268+
flexit-bacnet
1269+
];
12691270
"flexom" = ps: with ps; [
12701271
];
12711272
"flic" = ps: with ps; [
@@ -5046,6 +5047,7 @@
50465047
"fitbit"
50475048
"fivem"
50485049
"fjaraskupan"
5050+
"flexit_bacnet"
50495051
"flic"
50505052
"flick_electric"
50515053
"flipr"

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4536,6 +4536,8 @@ self: super: with self; {
45364536

45374537
flexcache = callPackage ../development/python-modules/flexcache { };
45384538

4539+
flexit-bacnet = callPackage ../development/python-modules/flexit-bacnet { };
4540+
45394541
flexmock = callPackage ../development/python-modules/flexmock { };
45404542

45414543
flexparser = callPackage ../development/python-modules/flexparser { };

0 commit comments

Comments
 (0)