1{
2 lib,
3 buildPythonPackage,
4 construct,
5 packaging,
6 fetchFromGitHub,
7 pytestCheckHook,
8 pythonOlder,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "snapcast";
14 version = "2.3.7";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "happyleavesaoc";
21 repo = "python-snapcast";
22 tag = version;
23 hash = "sha256-k6U13vkeOAip94hcEjssFgvMnhpOXG87E0R2Zu1YyY4=";
24 };
25
26 nativeBuildInputs = [ setuptools ];
27
28 propagatedBuildInputs = [
29 construct
30 packaging
31 ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "snapcast" ];
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}