overlay/pytapo/default.nix

46 lines
780 B
Nix
Raw Normal View History

2023-10-04 21:08:14 +00:00
{ lib
, buildPythonPackage
, fetchPypi
2023-10-26 19:07:04 +00:00
, pythonOlder
2023-10-04 21:08:14 +00:00
# propagates
, pycryptodome
, requests
2023-10-26 19:07:04 +00:00
, rtp
2023-10-04 21:08:14 +00:00
, urllib3
}:
buildPythonPackage rec {
pname = "pytapo";
2023-11-18 22:46:27 +00:00
version = "3.3.16";
2023-10-04 21:08:14 +00:00
format = "setuptools";
2023-10-26 19:07:04 +00:00
disabled = pythonOlder "3.7";
2023-10-04 21:08:14 +00:00
src = fetchPypi {
inherit pname version;
2023-11-18 22:46:27 +00:00
hash = "sha256-omeJUF4bY/FfXMmBvpVo3dr7B/pUy8YXt0DPaSe3VkA=";
2023-10-04 21:08:14 +00:00
};
propagatedBuildInputs = [
pycryptodome
requests
2023-10-26 19:07:04 +00:00
rtp
2023-10-04 21:08:14 +00:00
urllib3
];
pythonImportsCheck = [
"pytapo"
];
# Tests require actual hardware
doCheck = false;
meta = with lib; {
2023-10-26 19:07:04 +00:00
description = "Python library for communication with Tapo Cameras";
2023-10-04 21:08:14 +00:00
homepage = "https://github.com/JurajNyiri/pytapo";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fleaz ];
};
}