1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, enum-compat
5, requests
6, websocket-client
7, zeroconf
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "libsoundtouch";
13 version = "0.8.0";
14
15 src = fetchFromGitHub {
16 owner = "CharlesBlonde";
17 repo = "libsoundtouch";
18 rev = version;
19 sha256 = "1wl2w5xfdkrv0qzsz084z2k6sycfyq62mqqgciycha3dywf2fvva";
20 };
21
22 propagatedBuildInputs = [
23 requests
24 enum-compat
25 websocket-client
26 zeroconf
27 ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 ];
32
33 disabledTests = [
34 # mock data order mismatch
35 "test_select_content_item"
36 "test_snapshot_restore"
37 ];
38
39 meta = with lib; {
40 description = "Bose Soundtouch Python library";
41 homepage = "https://github.com/CharlesBlonde/libsoundtouch";
42 license = licenses.asl20;
43 };
44}