diff --git a/pkgs/development/python-modules/openhomedevice/default.nix b/pkgs/development/python-modules/openhomedevice/default.nix new file mode 100644 index 00000000000..625980b3b9d --- /dev/null +++ b/pkgs/development/python-modules/openhomedevice/default.nix @@ -0,0 +1,37 @@ +{ lib +, async-upnp-client +, buildPythonPackage +, fetchFromGitHub +, lxml +, pythonOlder +}: + +buildPythonPackage rec { + pname = "openhomedevice"; + version = "1.0.0"; + disabled = pythonOlder "3.5"; + + src = fetchFromGitHub { + owner = "bazwilliams"; + repo = pname; + rev = version; + sha256 = "04qdlyzc8xsk7qxyn9l59pbwnlw49zknw0r5lqwx402va12g4ra0"; + }; + + propagatedBuildInputs = [ + async-upnp-client + lxml + ]; + + # Tests are currently outdated + # https://github.com/bazwilliams/openhomedevice/issues/20 + doCheck = false; + pythonImportsCheck = [ "openhomedevice" ]; + + meta = with lib; { + description = "Python module to access Linn Ds and Openhome devices"; + homepage = "https://github.com/bazwilliams/openhomedevice"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 492e7e76f9d..91f995d6cca 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -594,7 +594,7 @@ "openexchangerates" = ps: with ps; [ ]; "opengarage" = ps: with ps; [ ]; # missing inputs: open-garage "openhardwaremonitor" = ps: with ps; [ ]; - "openhome" = ps: with ps; [ ]; # missing inputs: openhomedevice + "openhome" = ps: with ps; [ openhomedevice ]; "opensensemap" = ps: with ps; [ opensensemap-api ]; "opensky" = ps: with ps; [ ]; "opentherm_gw" = ps: with ps; [ ]; # missing inputs: pyotgw diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e53843c9688..10da6e1f33c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4803,6 +4803,8 @@ in { pythonPackages = self; })); + openhomedevice = callPackage ../development/python-modules/openhomedevice { }; + openidc-client = callPackage ../development/python-modules/openidc-client { }; openpyxl = if pythonAtLeast "3.6" then