depot/third_party/nixpkgs/pkgs/development/python-modules/pytapo/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

45 lines
804 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
pycryptodome,
requests,
rtp,
urllib3,
setuptools,
}:
buildPythonPackage rec {
pname = "pytapo";
version = "3.3.21";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-rc9XhV99vzgoUF5ERFmJHHB9GMwq5Y44CJKg+g5tjOo=";
};
build-system = [ setuptools ];
dependencies = [
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 ];
};
}