depot/third_party/nixpkgs/pkgs/by-name/so/soco-cli/package.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

42 lines
854 B
Nix

{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "soco-cli";
version = "0.4.73";
format = "setuptools";
disabled = python3.pythonOlder "3.6";
src = fetchFromGitHub {
owner = "avantrec";
repo = pname;
rev = "v${version}";
hash = "sha256-WxBwHjh5tCXclQXqrHrpvZdcQU93RObteAfZyyVvKf0=";
};
propagatedBuildInputs = with python3.pkgs; [
fastapi
rangehttpserver
soco
tabulate
uvicorn
];
# Tests wants to communicate with hardware
doCheck = false;
pythonImportsCheck = [
"soco_cli"
];
meta = {
description = "Command-line interface to control Sonos sound systems";
homepage = "https://github.com/avantrec/soco-cli";
license = with lib.licenses; [ asl20 ];
mainProgram = "sonos";
maintainers = with lib.maintainers; [ fab ];
};
}