Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 pycryptodome, 7 requests, 8 rtp, 9 urllib3, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "pytapo"; 15 version = "3.3.30"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-zSeDeGD/78bIoKm6B8BN4qWQE1ivNgyvnrGtgsekM3M="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ 28 pycryptodome 29 requests 30 rtp 31 urllib3 32 ]; 33 34 pythonImportsCheck = [ "pytapo" ]; 35 36 # Tests require actual hardware 37 doCheck = false; 38 39 meta = with lib; { 40 description = "Python library for communication with Tapo Cameras"; 41 homepage = "https://github.com/JurajNyiri/pytapo"; 42 license = with licenses; [ mit ]; 43 maintainers = with maintainers; [ fleaz ]; 44 }; 45}