Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchFromGitHub 3, python3 4}: 5 6python3.pkgs.buildPythonApplication rec { 7 pname = "soco-cli"; 8 version = "0.4.55"; 9 format = "setuptools"; 10 11 disabled = python3.pythonOlder "3.6"; 12 13 src = fetchFromGitHub rec { 14 owner = "avantrec"; 15 repo = pname; 16 rev = "v${version}"; 17 sha256 = "sha256-zdu1eVtVBTYa47KjGc5fqKN6olxp98RoLGT2sNCfG9E="; 18 }; 19 20 propagatedBuildInputs = with python3.pkgs; [ 21 fastapi 22 rangehttpserver 23 soco 24 tabulate 25 uvicorn 26 ]; 27 28 # Tests wants to communicate with hardware 29 doCheck = false; 30 31 pythonImportsCheck = [ 32 "soco_cli" 33 ]; 34 35 meta = with lib; { 36 description = "Command-line interface to control Sonos sound systems"; 37 homepage = "https://github.com/avantrec/soco-cli"; 38 license = with licenses; [ asl20 ]; 39 maintainers = with maintainers; [ fab ]; 40 mainProgram = "sonos"; 41 }; 42}