2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, xmltodict, requests
|
2020-06-15 15:56:04 +00:00
|
|
|
, toml
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Test dependencies
|
|
|
|
, pytest, pytestcov, coveralls, pylint, flake8, graphviz, mock, sphinx
|
|
|
|
, sphinx_rtd_theme
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "soco";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "0.20";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "929d4fae20b32efc08bb9985798c592aa7268162885541513eddbff0a757418f";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
propagatedBuildInputs = [ xmltodict requests toml ];
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest pytestcov coveralls pylint flake8 graphviz mock sphinx
|
|
|
|
sphinx_rtd_theme
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://python-soco.com/";
|
|
|
|
description = "A CLI and library to control Sonos speakers";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|