diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/soco/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/soco/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/soco/default.nix b/nixpkgs/pkgs/development/python-modules/soco/default.nix new file mode 100644 index 000000000000..3f0d16cc8a86 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/soco/default.nix @@ -0,0 +1,34 @@ +{ lib, buildPythonPackage, fetchPypi, xmltodict, requests + +# Test dependencies +, pytest, pytestcov, coveralls, pylint, flake8, graphviz, mock, sphinx +, sphinx_rtd_theme +}: + +buildPythonPackage rec { + pname = "soco"; + version = "0.17"; + + src = fetchPypi { + inherit pname version; + sha256 = "15zw6i5z5p8vsa3lp20rjizhv4lzz935r73im0xm6zsl71bsgvj8"; + }; + + postPatch = '' + # https://github.com/SoCo/SoCo/pull/670 + substituteInPlace requirements-dev.txt \ + --replace "pytest-cov>=2.4.0,<2.6" "pytest-cov>=2.4.0" + ''; + + 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; + }; +} |