diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2023-02-11 00:58:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-11 00:58:14 +0000 |
commit | 507b619221d1963d515dca6ca73dc7e2fc82d068 (patch) | |
tree | 408931c3fc30c8ab847a315d5e9f7e7e68ee6bf7 /pkgs | |
parent | 0cba5e8bf9eec2d112467839f0b7afdafeac9e60 (diff) | |
parent | 13504907e0d2a9e3bf9f848ef3574bdae29e3d6b (diff) |
Merge pull request #215732 from fleaz/init_pytapo
python310Packages.pytapo: init at 2.9.2
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/pytapo/default.nix | 40 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytapo/default.nix b/pkgs/development/python-modules/pytapo/default.nix new file mode 100644 index 0000000000000..1a8ee768fb658 --- /dev/null +++ b/pkgs/development/python-modules/pytapo/default.nix @@ -0,0 +1,40 @@ +{ lib +, buildPythonPackage +, fetchPypi + +# propagates +, pycryptodome +, requests +, urllib3 +}: + +buildPythonPackage rec { + pname = "pytapo"; + version = "2.9.2"; + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-LW14uDQBqIVsigOzO0bNTpjY7Fk0IWAeDMPEuWM/nOo="; + }; + + propagatedBuildInputs = [ + pycryptodome + requests + urllib3 + ]; + + pythonImportsCheck = [ + "pytapo" + ]; + + # Tests require actual hardware + doCheck = false; + + meta = with lib; { + description = "Python library for communication with Tapo Cameras "; + homepage = "https://github.com/JurajNyiri/pytapo"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fleaz ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cf7d7643e03fd..cfbb687af4c50 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8958,6 +8958,8 @@ self: super: with self; { pytap2 = callPackage ../development/python-modules/pytap2 { }; + pytapo = callPackage ../development/python-modules/pytapo { }; + pytautulli = callPackage ../development/python-modules/pytautulli { }; pyte = callPackage ../development/python-modules/pyte { }; |