2019-01-21 10:02:54 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, requests, zeroconf, protobuf, casttube, isPy3k }:
|
2017-07-26 18:32:29 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "PyChromecast";
|
2019-10-24 07:47:43 +01:00
|
|
|
version = "4.1.0";
|
2017-07-26 18:32:29 +01:00
|
|
|
|
2019-01-21 10:02:54 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:43 +01:00
|
|
|
sha256 = "b6979f1ddce1ff8760586aa6b8828290964b38f34c01aa1380ab1740330eeee2";
|
2017-07-26 18:32:29 +01:00
|
|
|
};
|
|
|
|
|
2019-01-21 10:02:54 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests zeroconf protobuf casttube ];
|
2017-07-26 18:32:29 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2019-01-21 10:02:54 +00:00
|
|
|
description = "Library for Python 3.4+ to communicate with the Google Chromecast";
|
2018-02-25 16:47:45 +00:00
|
|
|
homepage = https://github.com/balloob/pychromecast;
|
2017-07-26 18:32:29 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = platforms.unix;
|
2017-07-26 18:32:29 +01:00
|
|
|
};
|
|
|
|
}
|