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-02-22 19:05:10 +00:00
|
|
|
version = "8.1.0";
|
2017-07-26 18:32:29 +01:00
|
|
|
|
2019-01-21 10:02:54 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-22 19:05:10 +00:00
|
|
|
sha256 = "sha256-3wKV9lPO51LeOM+O8J8TrZeCxTkk37qhkcpivV4dzhQ=";
|
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
|
|
|
};
|
|
|
|
}
|