Skip to content

Commit

Permalink
Merge pull request #333905 from dotlambda/python3Packages.flexit-bacnet
Browse files Browse the repository at this point in the history
home-assistant: support flexit_bacnet component
  • Loading branch information
mweinelt committed Aug 11, 2024
2 parents 182792a + de54a32 commit 46385c7
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/flexit-bacnet/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
buildPythonPackage,
fetchFromGitHub,
lib,
setuptools,
}:

buildPythonPackage rec {
pname = "flexit-bacnet";
version = "2.2.1";
pyproject = true;

src = fetchFromGitHub {
owner = "piotrbulinski";
repo = "flexit_bacnet";
rev = "refs/tags/${version}";
hash = "sha256-Cy/WHKtJoZWSFOs+9rBYSLqZTF/68WRM1HiYXDyb9KM=";
};

build-system = [ setuptools ];

pythonImportsCheck = [ "flexit_bacnet" ];

# upstream has no tests
doCheck = false;

meta = {
changelog = "https://github.com/piotrbulinski/flexit_bacnet/releases/tag/${version}";
description = "Client BACnet library for Flexit Nordic series of air handling units";
homepage = "https://github.com/piotrbulinski/flexit_bacnet";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
4 changes: 3 additions & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,8 @@
pymodbus
];
"flexit_bacnet" = ps: with ps; [
]; # missing inputs: flexit_bacnet
flexit-bacnet
];
"flexom" = ps: with ps; [
];
"flic" = ps: with ps; [
Expand Down Expand Up @@ -5046,6 +5047,7 @@
"fitbit"
"fivem"
"fjaraskupan"
"flexit_bacnet"
"flic"
"flick_electric"
"flipr"
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4536,6 +4536,8 @@ self: super: with self; {

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

flexit-bacnet = callPackage ../development/python-modules/flexit-bacnet { };

flexmock = callPackage ../development/python-modules/flexmock { };

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

0 comments on commit 46385c7

Please sign in to comment.