2019-05-10 14:34:29 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, xmltodict
|
|
|
|
, requests
|
|
|
|
, ifaddr
|
|
|
|
|
|
|
|
# Test dependencies
|
2019-07-13 10:23:00 +01:00
|
|
|
, pytest, pylint, flake8, graphviz
|
2019-05-10 14:34:29 +01:00
|
|
|
, mock, sphinx, sphinx_rtd_theme
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pysonos";
|
2019-10-24 07:47:45 +01:00
|
|
|
version = "0.0.24";
|
2019-05-10 14:34:29 +01:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:45 +01:00
|
|
|
sha256 = "294ffce5394a3e0da6a6f4e23f84031f06d9eb76eaa362507c0b1033ffbf69b4";
|
2019-05-10 14:34:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ xmltodict requests ifaddr ];
|
|
|
|
|
|
|
|
checkInputs = [
|
2019-07-13 10:23:00 +01:00
|
|
|
pytest pylint flake8 graphviz
|
2019-05-10 14:34:29 +01:00
|
|
|
mock sphinx sphinx_rtd_theme
|
|
|
|
];
|
|
|
|
|
2019-07-13 10:23:00 +01:00
|
|
|
checkPhase = ''
|
|
|
|
pytest --deselect=tests/test_discovery.py::TestDiscover::test_discover
|
|
|
|
'';
|
|
|
|
|
2019-05-10 14:34:29 +01:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/amelchio/pysonos";
|
2019-05-10 14:34:29 +01:00
|
|
|
description = "A SoCo fork with fixes for Home Assistant";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ juaningan ];
|
|
|
|
};
|
|
|
|
}
|