Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 35 lines 882 B view raw
1{ lib, buildPythonPackage, fetchPypi, xmltodict, requests 2 3# Test dependencies 4, pytest, pytestcov, coveralls, pylint, flake8, graphviz, mock, sphinx 5, sphinx_rtd_theme 6}: 7 8buildPythonPackage rec { 9 pname = "soco"; 10 version = "0.18.1"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "de033ad69f86a655f50d407648b3aa2dd9647c69fd7bb317e9adfcd38a1adf4b"; 15 }; 16 17 postPatch = '' 18 # https://github.com/SoCo/SoCo/pull/670 19 substituteInPlace requirements-dev.txt \ 20 --replace "pytest-cov>=2.4.0,<2.6" "pytest-cov>=2.4.0" 21 ''; 22 23 propagatedBuildInputs = [ xmltodict requests ]; 24 checkInputs = [ 25 pytest pytestcov coveralls pylint flake8 graphviz mock sphinx 26 sphinx_rtd_theme 27 ]; 28 29 meta = { 30 homepage = http://python-soco.com/; 31 description = "A CLI and library to control Sonos speakers"; 32 license = lib.licenses.mit; 33 broken = true; 34 }; 35}