1{ lib
2, buildPythonPackage
3, construct
4, fetchFromGitHub
5, isPy3k
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "snapcast";
11 version = "2.1.3";
12 disabled = !isPy3k;
13
14 src = fetchFromGitHub {
15 owner = "happyleavesaoc";
16 repo = "python-snapcast";
17 rev = version;
18 sha256 = "1jigdccdd7bffszim942mxcwxyznfjx7y3r5yklz3psl7zgbzd6c";
19 };
20
21 propagatedBuildInputs = [
22 construct
23 ];
24
25 checkInputs = [
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [ "snapcast" ];
30
31 meta = with lib; {
32 description = "Control Snapcast, a multi-room synchronous audio solution";
33 homepage = "https://github.com/happyleavesaoc/python-snapcast/";
34 license = licenses.mit;
35 maintainers = with maintainers; [ peterhoeg ];
36 };
37}