blob: ebf8aff02dc00d2d4734ffe6e735a1a87e471ac4 (
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
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitLab,
pytestCheckHook,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "tololib";
version = "1.2.2";
pyproject = true;
src = fetchFromGitLab {
owner = "MatthiasLohr";
repo = "tololib";
tag = "v${version}";
hash = "sha256-dfyc96VcauERv2E5I6nOIXAHbmTHiRLqS+0XH0GB5HM=";
};
build-system = [ setuptools-scm ];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
export PATH="$PATH:$out/bin";
'';
pythonImportsCheck = [ "tololib" ];
# Network discovery doesn't work in the sandbox for darwin
doCheck = !stdenv.hostPlatform.isDarwin;
meta = {
description = "Python Library for Controlling TOLO Sauna/Steam Bath Devices";
homepage = "https://gitlab.com/MatthiasLohr/tololib";
changelog = "https://gitlab.com/MatthiasLohr/tololib/-/blob/v${version}/CHANGELOG.md";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
mainProgram = "tolo-cli";
};
}
|