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.0.38"; 15 format = "pyproject"; 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "pavoni"; 20 repo = "pyroon"; 21 rev = version; 22 sha256 = "sha256-vXx7MgoGjBPdx7uKUtAVqlXphPJYt5SyuTo2JlKia60="; 23 }; 24 25 nativeBuildInputs = [ 26 poetry-core 27 ]; 28 29 propagatedBuildInputs = [ 30 ifaddr 31 requests 32 six 33 websocket-client 34 ]; 35 36 # Tests require access to the Roon API 37 doCheck = false; 38 39 pythonImportsCheck = [ "roonapi" ]; 40 41 meta = with lib; { 42 description = "Python library to interface with the Roon API"; 43 homepage = "https://github.com/pavoni/pyroon"; 44 license = with licenses; [ asl20 ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}