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

43 lines
870 B
Nix
Raw Normal View History

2019-05-10 13:34:29 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, xmltodict
, requests
, ifaddr
# Test dependencies
, pytest, pylint, flake8, graphviz
2019-05-10 13:34:29 +00:00
, mock, sphinx, sphinx_rtd_theme
}:
buildPythonPackage rec {
pname = "pysonos";
2020-06-05 17:44:36 +00:00
version = "0.0.31";
2019-05-10 13:34:29 +00:00
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
2020-06-05 17:44:36 +00:00
sha256 = "03f21d2fb27cd938bd2c47f8582c0737eb7426a0cd59e5a60171fabe5e963e62";
2019-05-10 13:34:29 +00:00
};
propagatedBuildInputs = [ xmltodict requests ifaddr ];
checkInputs = [
pytest pylint flake8 graphviz
2019-05-10 13:34:29 +00:00
mock sphinx sphinx_rtd_theme
];
checkPhase = ''
pytest --deselect=tests/test_discovery.py::TestDiscover::test_discover
'';
2019-05-10 13:34:29 +00:00
meta = {
homepage = "https://github.com/amelchio/pysonos";
2019-05-10 13:34:29 +00:00
description = "A SoCo fork with fixes for Home Assistant";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ juaningan ];
};
}