nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, casttube
4, fetchPypi
5, isPy3k
6, protobuf
7, requests
8, zeroconf
9}:
10
11buildPythonPackage rec {
12 pname = "pychromecast";
13 version = "12.1.2";
14 format = "setuptools";
15
16 disabled = !isPy3k;
17
18 src = fetchPypi {
19 pname = "PyChromecast";
20 inherit version;
21 sha256 = "sha256-a+Ym5bovb/rvvBPdzthOi2Cp7xsBL3EDn8D3oLy0vaY=";
22 };
23
24 propagatedBuildInputs = [
25 casttube
26 protobuf
27 requests
28 zeroconf
29 ];
30
31 # no tests available
32 doCheck = false;
33
34 pythonImportsCheck = [
35 "pychromecast"
36 ];
37
38 meta = with lib; {
39 description = "Library for Python to communicate with the Google Chromecast";
40 homepage = "https://github.com/home-assistant-libs/pychromecast";
41 license = licenses.mit;
42 maintainers = with maintainers; [ abbradar ];
43 platforms = platforms.unix;
44 };
45}