792b51d22f
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
58 lines
983 B
Nix
58 lines
983 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, graphviz
|
|
, appdirs
|
|
, ifaddr
|
|
, pythonOlder
|
|
, mock
|
|
, nix-update-script
|
|
, pytestCheckHook
|
|
, requests
|
|
, requests-mock
|
|
, xmltodict
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "soco";
|
|
version = "0.26.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SoCo";
|
|
repo = "SoCo";
|
|
rev = "v${version}";
|
|
hash = "sha256-tMW5SCsO1XMQdbasMw3qIMwj+Y6wTQHAmTZ+9r8Mffs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
appdirs
|
|
ifaddr
|
|
requests
|
|
xmltodict
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
graphviz
|
|
mock
|
|
requests-mock
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"soco"
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
attrPath = "python3Packages.${pname}";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "CLI and library to control Sonos speakers";
|
|
homepage = "http://python-soco.com/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lovesegfault ];
|
|
};
|
|
}
|