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