2021-02-03 00:17:16 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2017-05-07 01:38:59 +01:00
|
|
|
, fetchFromGitHub
|
2021-02-03 00:17:16 +00:00
|
|
|
, enum-compat
|
2017-05-07 12:00:52 +01:00
|
|
|
, requests
|
2021-02-03 00:17:16 +00:00
|
|
|
, websocket_client
|
|
|
|
, zeroconf
|
|
|
|
, pytestCheckHook
|
2017-05-07 01:38:59 +01:00
|
|
|
}:
|
|
|
|
|
2021-02-03 00:17:16 +00:00
|
|
|
buildPythonPackage rec {
|
2017-05-07 01:38:59 +01:00
|
|
|
pname = "libsoundtouch";
|
2021-02-03 00:17:16 +00:00
|
|
|
version = "0.8.0";
|
2017-05-07 01:38:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-02-03 00:17:16 +00:00
|
|
|
owner = "CharlesBlonde";
|
|
|
|
repo = "libsoundtouch";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1wl2w5xfdkrv0qzsz084z2k6sycfyq62mqqgciycha3dywf2fvva";
|
2017-05-07 01:38:59 +01:00
|
|
|
};
|
|
|
|
|
2021-02-03 00:17:16 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
enum-compat
|
|
|
|
websocket_client
|
|
|
|
zeroconf
|
|
|
|
];
|
2017-05-07 01:38:59 +01:00
|
|
|
|
2021-02-03 00:17:16 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2017-05-07 01:38:59 +01:00
|
|
|
|
2021-02-03 00:17:16 +00:00
|
|
|
disabledTests = [
|
|
|
|
# mock data order mismatch
|
|
|
|
"test_select_content_item"
|
|
|
|
"test_snapshot_restore"
|
|
|
|
];
|
2017-05-07 01:38:59 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-05-07 01:38:59 +01:00
|
|
|
description = "Bose Soundtouch Python library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/CharlesBlonde/libsoundtouch";
|
2017-05-07 01:38:59 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|