From d15ba6a7ee5b8cd0859de8bb574cda2a4319fe20 Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 29 Jun 2018 21:04:42 +0200 Subject: [PATCH] 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 --- .../python-modules/soco/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/python-modules/soco/default.nix diff --git a/pkgs/development/python-modules/soco/default.nix b/pkgs/development/python-modules/soco/default.nix new file mode 100644 index 000000000000..152a61bbf1d4 --- /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; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6b4cd429a007..57289008c605 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12860,6 +12860,8 @@ in { shapely = callPackage ../development/python-modules/shapely { }; + soco = callPackage ../development/python-modules/soco { }; + sopel = buildPythonPackage rec { name = "sopel-6.3.1";