2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
pycryptodome,
|
|
|
|
requests,
|
|
|
|
rtp,
|
|
|
|
urllib3,
|
|
|
|
setuptools,
|
2023-02-16 17:41:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytapo";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "3.3.21";
|
|
|
|
pyproject = true;
|
2023-02-16 17:41:37 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-rc9XhV99vzgoUF5ERFmJHHB9GMwq5Y44CJKg+g5tjOo=";
|
2023-02-16 17:41:37 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2023-02-16 17:41:37 +00:00
|
|
|
pycryptodome
|
|
|
|
requests
|
2023-04-12 12:48:02 +00:00
|
|
|
rtp
|
2023-02-16 17:41:37 +00:00
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "pytapo" ];
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
# Tests require actual hardware
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-05-24 13:37:59 +00:00
|
|
|
description = "Python library for communication with Tapo Cameras";
|
2023-02-16 17:41:37 +00:00
|
|
|
homepage = "https://github.com/JurajNyiri/pytapo";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fleaz ];
|
|
|
|
};
|
|
|
|
}
|