depot/third_party/nixpkgs/pkgs/development/python-modules/pytapo/default.nix

46 lines
779 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# propagates
, pycryptodome
, requests
, rtp
, urllib3
}:
buildPythonPackage rec {
pname = "pytapo";
version = "3.3.6";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-kY1tPkzmUN5eb6YeUp/WSVmDloVSJbM5TXEFyfoXc/g=";
};
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 ];
};
}