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";
|
2021-01-08 08:18:33 +00:00
|
|
|
version = "7.7.2";
|
2017-07-26 18:32:29 +01:00
|
|
|
|
2019-01-21 10:02:54 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-08 08:18:33 +00:00
|
|
|
sha256 = "1w7jayb0z529bh1ybb16pfm0m08qqi4px1q0qwlvcxlcrd2v3m5a";
|
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
|
|
|
|
2021-01-08 08:38:03 +00:00
|
|
|
# no tests available
|
|
|
|
doCheck = false;
|
2020-12-30 12:09:02 +00:00
|
|
|
pythonImportsCheck = [ "pychromecast" ];
|
|
|
|
|
2017-07-26 18:32:29 +01:00
|
|
|
meta = with lib; {
|
2020-12-30 11:50:32 +00:00
|
|
|
description = "Library for Python to communicate with the Google Chromecast";
|
|
|
|
homepage = "https://github.com/home-assistant-libs/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
|
|
|
};
|
|
|
|
}
|