Skip to content

Commit

Permalink
Merge pull request #113690 from fabaff/python-velbus
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Feb 20, 2021
2 parents ec64808 + e4a759f commit d705a35
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
30 changes: 30 additions & 0 deletions pkgs/development/python-modules/python-velbus/default.nix
@@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pyserial
}:

buildPythonPackage rec {
pname = "python-velbus";
version = "2.1.2";

src = fetchFromGitHub {
owner = "thomasdelaet";
repo = pname;
rev = "v${version}";
sha256 = "0dv7dsjp5li87ispdphaz7jd0a9xc328rxwawf2f58b1ii904xr4";
};

propagatedBuildInputs = [ pyserial ];

# Project has not tests
doCheck = false;
pythonImportsCheck = [ "velbus" ];

meta = with lib; {
description = "Python library to control the Velbus home automation system";
homepage = "https://github.com/thomasdelaet/python-velbus";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Expand Up @@ -894,7 +894,7 @@
"vacuum" = ps: with ps; [ ];
"vallox" = ps: with ps; [ ]; # missing inputs: vallox-websocket-api
"vasttrafik" = ps: with ps; [ ]; # missing inputs: vtjp
"velbus" = ps: with ps; [ ]; # missing inputs: python-velbus
"velbus" = ps: with ps; [ python-velbus ];
"velux" = ps: with ps; [ pyvlx ];
"venstar" = ps: with ps; [ ]; # missing inputs: venstarcolortouch
"vera" = ps: with ps; [ pyvera ];
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -6495,6 +6495,8 @@ in {

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

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

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

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

0 comments on commit d705a35

Please sign in to comment.