24 lines
667 B
Nix
24 lines
667 B
Nix
|
{ lib, fetchPypi, buildPythonPackage, requests, zeroconf, protobuf, casttube, isPy3k }:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "PyChromecast";
|
||
|
version = "4.2.3";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit pname version;
|
||
|
sha256 = "1nqy9zvzxzncfmmbsj4ccb36gymh4pp1n1l9fdhv8fi0ai9b7dyp";
|
||
|
};
|
||
|
|
||
|
disabled = !isPy3k;
|
||
|
|
||
|
propagatedBuildInputs = [ requests zeroconf protobuf casttube ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Library for Python 3.4+ to communicate with the Google Chromecast";
|
||
|
homepage = "https://github.com/balloob/pychromecast";
|
||
|
license = licenses.mit;
|
||
|
maintainers = with maintainers; [ abbradar ];
|
||
|
platforms = platforms.unix;
|
||
|
};
|
||
|
}
|