nixpkgs/pkgs/development/python-modules/pysonos/default.nix

43 lines
870 B
Nix
Raw Normal View History

2019-05-10 14:34:29 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, xmltodict
, requests
, ifaddr
# Test dependencies
, pytest, pylint, flake8, graphviz
2019-05-10 14:34:29 +01:00
, mock, sphinx, sphinx_rtd_theme
}:
buildPythonPackage rec {
pname = "pysonos";
2020-07-31 09:56:45 +01:00
version = "0.0.32";
2019-05-10 14:34:29 +01:00
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
2020-07-31 09:56:45 +01:00
sha256 = "b739d20807f5fac95f8e02831faaf04023b7a8cb6f371024d89fd16c6bd8a589";
2019-05-10 14:34:29 +01:00
};
propagatedBuildInputs = [ xmltodict requests ifaddr ];
checkInputs = [
pytest pylint flake8 graphviz
2019-05-10 14:34:29 +01:00
mock sphinx sphinx_rtd_theme
];
checkPhase = ''
pytest --deselect=tests/test_discovery.py::TestDiscover::test_discover
'';
2019-05-10 14:34:29 +01:00
meta = {
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 ];
};
}