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";
2024-07-25 20:49:21 +00:00
version = "3.3.30";
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;
2024-07-25 20:49:21 +00:00
hash = "sha256-zSeDeGD/78bIoKm6B8BN4qWQE1ivNgyvnrGtgsekM3M=";
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 ];
};
}