1{ lib, fetchPypi, buildPythonPackage, requests, zeroconf, protobuf, casttube, isPy3k }:
2
3buildPythonPackage rec {
4 pname = "PyChromecast";
5 version = "9.3.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "a1d6807ae0fc455aaeecd2def87c31bb86679a2920cacfa7910db9c9db5085d4";
10 };
11
12 disabled = !isPy3k;
13
14 propagatedBuildInputs = [ requests zeroconf protobuf casttube ];
15
16 # no tests available
17 doCheck = false;
18 pythonImportsCheck = [ "pychromecast" ];
19
20 meta = with lib; {
21 description = "Library for Python to communicate with the Google Chromecast";
22 homepage = "https://github.com/home-assistant-libs/pychromecast";
23 license = licenses.mit;
24 maintainers = with maintainers; [ abbradar ];
25 platforms = platforms.unix;
26 };
27}