2019-05-10 13:34:29 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, xmltodict
|
|
|
|
, requests
|
|
|
|
, ifaddr
|
|
|
|
|
|
|
|
# Test dependencies
|
|
|
|
, pytest_3, pylint, flake8, graphviz
|
|
|
|
, mock, sphinx, sphinx_rtd_theme
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pysonos";
|
2019-07-22 11:47:17 +00:00
|
|
|
version = "0.0.21";
|
2019-05-10 13:34:29 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-07-22 11:47:17 +00:00
|
|
|
sha256 = "0x2nznjnm721qw9nys5ap3b6hq9s48bsd1yj5xih50pvn0rf0nz2";
|
2019-05-10 13:34:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ xmltodict requests ifaddr ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest_3 pylint flake8 graphviz
|
|
|
|
mock sphinx sphinx_rtd_theme
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|