depot/third_party/nixpkgs/pkgs/development/python-modules/pysonos/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

42 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.24";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "294ffce5394a3e0da6a6f4e23f84031f06d9eb76eaa362507c0b1033ffbf69b4";
};
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 ];
};
}