19 buildPythonPackage rec {
24 # N.B. We fetch from GitHub because the PyPI tarball doesn't contain the
25 # required files to run the tests.
26 src = fetchFromGitHub {
30 sha256 = "sha256-CCgkzUkt9YqTJt9tPBLmYXW6ZuRoMDd7xahYmNXgfM0=";
35 url = "https://patch-diff.githubusercontent.com/raw/SoCo/SoCo/pull/811.patch";
36 sha256 = "sha256-GBd74c8zc25ROO411SZ9TTa+bi8yXJaaOQqY9FM1qj4=";
40 # N.B. These exist because:
41 # 1. Upstream's pinning isn't well maintained, leaving dependency versions no
43 # 2. There is no benefit for us to be running linting and coverage tests.
45 sed -i "/black/d" ./requirements-dev.txt
46 sed -i "/coveralls/d" ./requirements-dev.txt
47 sed -i "/flake8/d" ./requirements-dev.txt
48 sed -i "/pylint/d" ./requirements-dev.txt
49 sed -i "/pytest-cov/d" ./requirements-dev.txt
52 propagatedBuildInputs = [
68 passthru.updateScript = nix-update-script {
69 attrPath = "python3Packages.${pname}";
73 homepage = "http://python-soco.com/";
74 description = "A CLI and library to control Sonos speakers";
75 license = licenses.mit;
76 maintainers = with maintainers; [ lovesegfault ];