blob: 75a4037ffb20b61d35ec4b243d4efc4cf7f83718 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
requests,
websocket-client,
zeroconf,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "libsoundtouch";
version = "0.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "CharlesBlonde";
repo = "libsoundtouch";
tag = version;
hash = "sha256-am8nHPdtKMh8ZA/jKgz2jnltpvgEga8/BjvP5nrhgvI=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "'enum-compat>=0.0.2'," ""
'';
build-system = [ setuptools ];
dependencies = [
requests
websocket-client
zeroconf
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# mock data order mismatch
"test_select_content_item"
"test_snapshot_restore"
];
pythonImportsCheck = [ "libsoundtouch" ];
meta = {
description = "Bose Soundtouch Python library";
homepage = "https://github.com/CharlesBlonde/libsoundtouch";
license = lib.licenses.asl20;
maintainers = [ ];
};
}
|