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";
|
2020-04-07 08:27:14 +01:00
|
|
|
version = "0.19";
|
2018-06-29 20:04:42 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-04-07 08:27:14 +01:00
|
|
|
sha256 = "0dgca286vhrabm4r4jj545k895z6w2c70ars06vrjhf9cpgg7qck";
|
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 = {
|
2020-04-07 08:27:14 +01:00
|
|
|
homepage = "http://python-soco.com/";
|
2018-06-29 20:04:42 +01:00
|
|
|
description = "A CLI and library to control Sonos speakers";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|