1{ lib
2, buildPythonPackage
3, construct
4, packaging
5, fetchFromGitHub
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "snapcast";
12 version = "2.3.3";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "happyleavesaoc";
19 repo = "python-snapcast";
20 rev = "refs/tags/${version}";
21 hash = "sha256-IFgSO0PjlFb4XJarx50Xnx6dF4tBKk3sLcoLWVdpnk8=";
22 };
23
24 propagatedBuildInputs = [
25 construct
26 packaging
27 ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [
34 "snapcast"
35 ];
36
37 disabledTests = [
38 # AssertionError and TypeError
39 "test_stream_setmeta"
40 "est_stream_setproperty"
41 ];
42
43 meta = with lib; {
44 description = "Control Snapcast, a multi-room synchronous audio solution";
45 homepage = "https://github.com/happyleavesaoc/python-snapcast/";
46 license = licenses.mit;
47 maintainers = with maintainers; [ peterhoeg ];
48 };
49}