mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
28 lines
759 B
Nix
28 lines
759 B
Nix
{ lib, fetchPypi, buildPythonPackage, requests, zeroconf, protobuf, casttube, isPy3k }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "PyChromecast";
|
|
version = "9.2.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-iD1ug2/18QaKi9ADZKFbTJhUKTCGSV6f2crNm01UwL8=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|