diff options
author | aszlig <aszlig@nix.build> | 2018-06-29 21:04:42 +0200 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2018-06-29 21:29:49 +0200 |
commit | d15ba6a7ee5b8cd0859de8bb574cda2a4319fe20 (patch) | |
tree | be05fdc04fe3faef3765b2209c6dc0de31c25407 /pkgs/development/python-modules/soco | |
parent | 2059bf9e39bef62e9386291e1041371bdd8036ab (diff) |
python/soco: init at 0.15
This is required for one of the plugins (sonosupdate) of Beets version 1.4.7. I do not have a Sonos speaker, so I can't really test whether the library works nor properly maintain this package (so I didn't add myself as a maintainer). I ran the build (including tests) against Python 2.x and Python 3.x. Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/development/python-modules/soco')
-rw-r--r-- | pkgs/development/python-modules/soco/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/soco/default.nix b/pkgs/development/python-modules/soco/default.nix new file mode 100644 index 0000000000000..152a61bbf1d4d --- /dev/null +++ b/pkgs/development/python-modules/soco/default.nix @@ -0,0 +1,28 @@ +{ lib, buildPythonPackage, fetchPypi, xmltodict, requests + +# Test dependencies +, pytest, pytestcov, coveralls, pylint, flake8, graphviz, mock, sphinx +, sphinx_rtd_theme +}: + +buildPythonPackage rec { + pname = "soco"; + version = "0.15"; + + src = fetchPypi { + inherit pname version; + sha256 = "18bxpbd7l9gns0jpvx09z023kbbz7b6i4f99i8silsb1jv682kg0"; + }; + + propagatedBuildInputs = [ xmltodict requests ]; + checkInputs = [ + pytest pytestcov coveralls pylint flake8 graphviz mock sphinx + sphinx_rtd_theme + ]; + + meta = { + homepage = http://python-soco.com/; + description = "A CLI and library to control Sonos speakers"; + license = lib.licenses.mit; + }; +} |