Skip to content

Commit

Permalink
home-assistant: support jvc_projector component (NixOS#370684)
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored Jan 3, 2025
2 parents 4bc2a5f + c9589e4 commit 14a0b57
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
43 changes: 43 additions & 0 deletions pkgs/development/python-modules/pyjvcprojector/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
aiodns,
buildPythonPackage,
fetchFromGitHub,
lib,
pytest-asyncio,
pytestCheckHook,
setuptools,
}:

buildPythonPackage rec {
pname = "pyjvcprojector";
version = "1.1.2";
pyproject = true;

src = fetchFromGitHub {
owner = "SteveEasley";
repo = "pyjvcprojector";
tag = "v${version}";
hash = "sha256-ow9pCigbQpxLibIq1hsRifXuzJfbWnqpWmnkM5lC3I4=";
};

build-system = [ setuptools ];

dependencies = [
aiodns
];

pythonImportsCheck = [ "jvcprojector" ];

nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];

meta = {
changelog = "https://github.com/SteveEasley/pyjvcprojector/releases/tag/${src.tag}";
description = "Python library for controlling a JVC Projector over a network connection";
homepage = "https://github.com/SteveEasley/pyjvcprojector";
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 @@ -2744,7 +2744,8 @@
];
"jvc_projector" =
ps: with ps; [
]; # missing inputs: pyjvcprojector
pyjvcprojector
];
"kaiterra" =
ps: with ps; [
]; # missing inputs: kaiterra-async-client
Expand Down Expand Up @@ -6807,6 +6808,7 @@
"jewish_calendar"
"juicenet"
"justnimbus"
"jvc_projector"
"kaleidescape"
"keenetic_ndms2"
"kegtron"
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 @@ -11890,6 +11890,8 @@ self: super: with self; {

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

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

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

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

0 comments on commit 14a0b57

Please sign in to comment.