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-12-03 20:19:39 +00:00
version = "3.3.36";
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-12-03 20:19:39 +00:00
hash = "sha256-XO8B2MuP2nbftiEo9RAdL0vHFgcKZlYr0rtmTZZGp1Q=";
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 ];
};
}