blob: 1cfa6c20542847aea2f3f8cbf8a3e91a768da899 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
ifaddr,
poetry-core,
requests,
six,
websocket-client,
}:
buildPythonPackage rec {
pname = "roonapi";
version = "0.1.6";
pyproject = true;
src = fetchFromGitHub {
owner = "pavoni";
repo = "pyroon";
rev = version;
hash = "sha256-6wQsaZ50J2xIPXzICglg5pf8U0r4tL8iqcbdwjZadwU=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
ifaddr
requests
six
websocket-client
];
# Tests require access to the Roon API
doCheck = false;
pythonImportsCheck = [ "roonapi" ];
meta = {
description = "Python library to interface with the Roon API";
homepage = "https://github.com/pavoni/pyroon";
changelog = "https://github.com/pavoni/pyroon/releases/tag/${version}";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}
|