diff --git a/pkgs/development/python-modules/lupupy/default.nix b/pkgs/development/python-modules/lupupy/default.nix new file mode 100644 index 000000000000..a1248d331426 --- /dev/null +++ b/pkgs/development/python-modules/lupupy/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonPackage +, colorlog +, demjson +, fetchPypi +, pythonOlder +, requests +}: + +buildPythonPackage rec { + pname = "lupupy"; + version = "0.0.21"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "0cpamb1fp84psiqm7xr156zi4f2fv2wijbjjyk6w87z8fl2aw8xc"; + }; + + propagatedBuildInputs = [ + colorlog + demjson + requests + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "lupupy" ]; + + meta = with lib; { + description = "Python module to control Lupusec alarm control panels"; + homepage = "https://github.com/majuss/lupupy"; + 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 6204a43b2c53..39a5ed3e2bea 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -478,7 +478,7 @@ "lovelace" = ps: with ps; [ ]; "luci" = ps: with ps; [ openwrt-luci-rpc ]; "luftdaten" = ps: with ps; [ luftdaten ]; - "lupusec" = ps: with ps; [ ]; # missing inputs: lupupy + "lupusec" = ps: with ps; [ lupupy ]; "lutron" = ps: with ps; [ pylutron ]; "lutron_caseta" = ps: with ps; [ aiolip pylutron-caseta ]; "lw12wifi" = ps: with ps; [ ]; # missing inputs: lw12 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0f5dc551e472..686dd8c0f363 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4384,6 +4384,8 @@ in { lupa = callPackage ../development/python-modules/lupa { }; + lupupy = callPackage ../development/python-modules/lupupy { }; + lxml = callPackage ../development/python-modules/lxml { inherit (pkgs) libxml2 libxslt zlib; };