1{ 2 lib, 3 buildPythonPackage, 4 cryptography, 5 fetchFromGitHub, 6 pytestCheckHook, 7 pythonOlder, 8 requests, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "pyfritzhome"; 14 version = "0.6.17"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "hthiery"; 21 repo = "python-fritzhome"; 22 tag = version; 23 hash = "sha256-NYxrw+kkCWhU79nU1t50tGISHUx3sWE/af094Q0ag4I="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ 29 cryptography 30 requests 31 ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 pythonImportsCheck = [ "pyfritzhome" ]; 36 37 meta = with lib; { 38 description = "Python Library to access AVM FRITZ!Box homeautomation"; 39 mainProgram = "fritzhome"; 40 homepage = "https://github.com/hthiery/python-fritzhome"; 41 changelog = "https://github.com/hthiery/python-fritzhome/releases/tag/${src.tag}"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ hexa ]; 44 }; 45}