forked from mirrors/nixpkgs
28 lines
772 B
Nix
28 lines
772 B
Nix
{ lib, fetchPypi, buildPythonPackage, requests, zeroconf, protobuf, casttube, isPy3k }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "PyChromecast";
|
|
version = "9.3.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a1d6807ae0fc455aaeecd2def87c31bb86679a2920cacfa7910db9c9db5085d4";
|
|
};
|
|
|
|
disabled = !isPy3k;
|
|
|
|
propagatedBuildInputs = [ requests zeroconf protobuf casttube ];
|
|
|
|
# no tests available
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "pychromecast" ];
|
|
|
|
meta = with lib; {
|
|
description = "Library for Python to communicate with the Google Chromecast";
|
|
homepage = "https://github.com/home-assistant-libs/pychromecast";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|