2023-02-16 17:41:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
|
|
|
|
# propagates
|
|
|
|
, pycryptodome
|
|
|
|
, requests
|
|
|
|
, urllib3
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytapo";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "3.1.7";
|
2023-02-16 17:41:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-e5XeXPwf2QSZ/xgaPBPoRBaTvC8oNYI9/b190wSI4oQ=";
|
2023-02-16 17:41:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|