depot/third_party/nixpkgs/pkgs/development/python-modules/pytapo/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

45 lines
780 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# propagates
, pycryptodome
, requests
, rtp
, urllib3
}:
buildPythonPackage rec {
pname = "pytapo";
version = "3.2.14";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-V/D+eE6y1kCMZmp9rIcvS/wdcSyW3mYWEJqpCb74NtY=";
};
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 ];
};
}