1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, ifaddr 5, poetry-core 6, pythonOlder 7, requests 8, six 9, websocket-client 10}: 11 12buildPythonPackage rec { 13 pname = "roonapi"; 14 version = "0.1.1"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "pavoni"; 21 repo = "pyroon"; 22 rev = version; 23 sha256 = "sha256-GEgm250uALTXIEMBWmluqGw/dw2TfGmUIcItfzonGkU="; 24 }; 25 26 nativeBuildInputs = [ 27 poetry-core 28 ]; 29 30 propagatedBuildInputs = [ 31 ifaddr 32 requests 33 six 34 websocket-client 35 ]; 36 37 # Tests require access to the Roon API 38 doCheck = false; 39 40 pythonImportsCheck = [ 41 "roonapi" 42 ]; 43 44 meta = with lib; { 45 description = "Python library to interface with the Roon API"; 46 homepage = "https://github.com/pavoni/pyroon"; 47 license = with licenses; [ asl20 ]; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}