1{ lib, fetchPypi, buildPythonPackage, requests, zeroconf, protobuf, casttube, isPy3k }:
2
3buildPythonPackage rec {
4 pname = "PyChromecast";
5 version = "2.5.2";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "7ce4eeb398a73c26bd65870739c94845da60f4527ebe2f104826ee32d70d035c";
10 };
11
12 disabled = !isPy3k;
13
14 propagatedBuildInputs = [ requests zeroconf protobuf casttube ];
15
16 meta = with lib; {
17 description = "Library for Python 3.4+ to communicate with the Google Chromecast";
18 homepage = https://github.com/balloob/pychromecast;
19 license = licenses.mit;
20 maintainers = with maintainers; [ abbradar ];
21 platforms = platforms.unix;
22 };
23}