2023-02-16 17:41:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-05-24 13:37:59 +00:00
|
|
|
, pythonOlder
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
# propagates
|
|
|
|
, pycryptodome
|
|
|
|
, requests
|
2023-04-12 12:48:02 +00:00
|
|
|
, rtp
|
2023-02-16 17:41:37 +00:00
|
|
|
, urllib3
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytapo";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.3.6";
|
2023-02-16 17:41:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
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;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-kY1tPkzmUN5eb6YeUp/WSVmDloVSJbM5TXEFyfoXc/g=";
|
2023-02-16 17:41:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pycryptodome
|
|
|
|
requests
|
2023-04-12 12:48:02 +00:00
|
|
|
rtp
|
2023-02-16 17:41:37 +00:00
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytapo"
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|