587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
45 lines
780 B
Nix
45 lines
780 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
|
|
# propagates
|
|
, pycryptodome
|
|
, requests
|
|
, rtp
|
|
, urllib3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytapo";
|
|
version = "3.3.19";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Zm/ll6vOFW05euRgJN+SghVmMkSGQc9CVZkRu3h6AQQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pycryptodome
|
|
requests
|
|
rtp
|
|
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 ];
|
|
};
|
|
}
|