2018-06-29 20:04:42 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, xmltodict, requests
|
|
|
|
|
|
|
|
# Test dependencies
|
2019-07-05 17:25:45 +01:00
|
|
|
, pytest, pytestcov, coveralls, pylint, flake8, graphviz, mock, sphinx
|
2018-06-29 20:04:42 +01:00
|
|
|
, sphinx_rtd_theme
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "soco";
|
2019-07-05 17:25:45 +01:00
|
|
|
version = "0.17";
|
2018-06-29 20:04:42 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-07-05 17:25:45 +01:00
|
|
|
sha256 = "15zw6i5z5p8vsa3lp20rjizhv4lzz935r73im0xm6zsl71bsgvj8";
|
2018-06-29 20:04:42 +01:00
|
|
|
};
|
|
|
|
|
2019-07-05 17:25:45 +01:00
|
|
|
postPatch = ''
|
|
|
|
# https://github.com/SoCo/SoCo/pull/670
|
|
|
|
substituteInPlace requirements-dev.txt \
|
|
|
|
--replace "pytest-cov>=2.4.0,<2.6" "pytest-cov>=2.4.0"
|
|
|
|
'';
|
|
|
|
|
2018-06-29 20:04:42 +01:00
|
|
|
propagatedBuildInputs = [ xmltodict requests ];
|
|
|
|
checkInputs = [
|
2019-07-05 17:25:45 +01:00
|
|
|
pytest pytestcov coveralls pylint flake8 graphviz mock sphinx
|
2018-06-29 20:04:42 +01:00
|
|
|
sphinx_rtd_theme
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://python-soco.com/;
|
|
|
|
description = "A CLI and library to control Sonos speakers";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|