Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 enum-compat, 6 requests, 7 websocket-client, 8 zeroconf, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "libsoundtouch"; 14 version = "0.8.0"; 15 format = "setuptools"; 16 17 src = fetchFromGitHub { 18 owner = "CharlesBlonde"; 19 repo = "libsoundtouch"; 20 rev = version; 21 sha256 = "1wl2w5xfdkrv0qzsz084z2k6sycfyq62mqqgciycha3dywf2fvva"; 22 }; 23 24 propagatedBuildInputs = [ 25 requests 26 enum-compat 27 websocket-client 28 zeroconf 29 ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 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}