diff --git a/pkgs/development/python-modules/pyjvcprojector/default.nix b/pkgs/development/python-modules/pyjvcprojector/default.nix new file mode 100644 index 000000000000..470b56b669cb --- /dev/null +++ b/pkgs/development/python-modules/pyjvcprojector/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 52b900981d16..85747ca2877b 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -2744,7 +2744,8 @@ ]; "jvc_projector" = ps: with ps; [ - ]; # missing inputs: pyjvcprojector + pyjvcprojector + ]; "kaiterra" = ps: with ps; [ ]; # missing inputs: kaiterra-async-client @@ -6807,6 +6808,7 @@ "jewish_calendar" "juicenet" "justnimbus" + "jvc_projector" "kaleidescape" "keenetic_ndms2" "kegtron" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e52fa9f62213..9dcb43958cd0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };