2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, xmltodict
|
|
|
|
, requests
|
|
|
|
, ifaddr
|
|
|
|
|
|
|
|
# Test dependencies
|
|
|
|
, pytest, pylint, flake8, graphviz
|
|
|
|
, mock, sphinx, sphinx_rtd_theme
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pysonos";
|
2020-10-19 00:13:06 +00:00
|
|
|
version = "0.0.35";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-19 00:13:06 +00:00
|
|
|
sha256 = "3a0f8f6eb6ba0623b93a6995c1978cf72c4eedc5fbedac194e6d89e1b6b985e4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ xmltodict requests ifaddr ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest pylint flake8 graphviz
|
|
|
|
mock sphinx sphinx_rtd_theme
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest --deselect=tests/test_discovery.py::TestDiscover::test_discover
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/amelchio/pysonos";
|
|
|
|
description = "A SoCo fork with fixes for Home Assistant";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ juaningan ];
|
|
|
|
};
|
|
|
|
}
|