nixpkgs/pkgs/development/python-modules/pysonos/default.nix
2020-05-11 22:13:12 +02:00

43 lines
870 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, xmltodict
, requests
, ifaddr
# Test dependencies
, pytest, pylint, flake8, graphviz
, mock, sphinx, sphinx_rtd_theme
}:
buildPythonPackage rec {
pname = "pysonos";
version = "0.0.28";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "09852c0bfe07e3529f8665527381f586c7ea3beabcd7291311e679d56459069d";
};
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 ];
};
}