Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / snapcast / default.nix
blob9917e4d3f759d01aa38e7b46a3c490a7a27d1169
1 { lib
2 , buildPythonPackage
3 , construct
4 , packaging
5 , fetchFromGitHub
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "snapcast";
12   version = "2.3.3";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "happyleavesaoc";
19     repo = "python-snapcast";
20     rev = "refs/tags/${version}";
21     hash = "sha256-IFgSO0PjlFb4XJarx50Xnx6dF4tBKk3sLcoLWVdpnk8=";
22   };
24   propagatedBuildInputs = [
25     construct
26     packaging
27   ];
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   pythonImportsCheck = [
34     "snapcast"
35   ];
37   disabledTests = [
38     # AssertionError and TypeError
39     "test_stream_setmeta"
40     "est_stream_setproperty"
41   ];
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   };