1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest-cov-stub, 6 pytest-mock, 7 pytestCheckHook, 8 requests, 9 responses, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "python-tado"; 15 version = "0.18.15"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "wmalgadey"; 20 repo = "PyTado"; 21 tag = version; 22 hash = "sha256-FUnD5JVS816XQYqXGSDnypqcYuKVhEeFIFcENf8BkcU="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ requests ]; 28 29 nativeCheckInputs = [ 30 pytest-cov-stub 31 pytest-mock 32 pytestCheckHook 33 responses 34 ]; 35 36 disabledTests = [ 37 # network access 38 "test_interface_with_tado_api" 39 ]; 40 41 disabledTestPaths = [ 42 # network access 43 "tests/test_my_tado.py" 44 "tests/test_my_zone.py" 45 ]; 46 47 pythonImportsCheck = [ "PyTado" ]; 48 49 meta = with lib; { 50 description = "Python binding for Tado web API"; 51 homepage = "https://github.com/wmalgadey/PyTado"; 52 changelog = "https://github.com/wmalgadey/PyTado/releases/tag/${src.tag}"; 53 license = licenses.gpl3Plus; 54 maintainers = with maintainers; [ jamiemagee ]; 55 mainProgram = "pytado"; 56 }; 57}