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