2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
enum-compat,
|
|
|
|
requests,
|
|
|
|
websocket-client,
|
|
|
|
zeroconf,
|
|
|
|
pytestCheckHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildPythonPackage rec {
|
2024-06-05 15:53:02 +00:00
|
|
|
pname = "libsoundtouch";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "0.8.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
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
|
2021-06-28 23:13:55 +00:00
|
|
|
websocket-client
|
2021-02-05 17:12:51 +00:00
|
|
|
zeroconf
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ 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";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://github.com/CharlesBlonde/libsoundtouch";
|
|
|
|
license = licenses.asl20;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|