-
-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Expand file tree
/
Copy pathdefault.nix
More file actions
77 lines (67 loc) · 1.43 KB
/
Copy pathdefault.nix
File metadata and controls
77 lines (67 loc) · 1.43 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
lib,
aiosendspin-mpris,
aiosendspin,
av,
buildPythonPackage,
fetchFromGitHub,
numpy,
pulsectl-asyncio,
pychromecast,
pyprojectVersionPatchHook,
pytest-asyncio,
pytestCheckHook,
qrcode,
readchar,
rich,
setuptools,
sounddevice,
textual-image,
}:
buildPythonPackage (finalAttrs: {
pname = "sendspin";
version = "7.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Sendspin";
repo = "sendspin-cli";
tag = finalAttrs.version;
hash = "sha256-Oux9hEtN5AiPf3gAqXGVinDfDIuNVugchUNuLMfMoYc=";
};
nativeBuildInputs = [
pyprojectVersionPatchHook
];
build-system = [ setuptools ];
dependencies = [
aiosendspin
aiosendspin-mpris
av
numpy
pulsectl-asyncio
qrcode
readchar
rich
sounddevice
textual-image
]
++ aiosendspin.optional-dependencies.server;
optional-dependencies = {
cast = [ pychromecast ];
};
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "sendspin" ];
disabledTests = [
# requires internet
"test_multi_worker_starts_and_serves_status"
];
meta = {
description = "Synchronized audio player for Sendspin servers";
homepage = "https://github.com/Sendspin/sendspin-cli";
changelog = "https://github.com/Sendspin/sendspin-cli/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
})