1{ lib
2, buildPythonPackage
3, fetchFromGitLab
4, fetchpatch
5, pytestCheckHook
6, pythonOlder
7, setuptools-scm
8}:
9
10buildPythonPackage rec {
11 pname = "tololib";
12 version = "0.1.0b3";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitLab {
18 owner = "MatthiasLohr";
19 repo = pname;
20 rev = "v${version}";
21 sha256 = "qkdMy6/ZuBksbBTbDhPyCPWMjubQODjdMsqHTJ7QvQI=";
22 };
23
24 SETUPTOOLS_SCM_PRETEND_VERSION = version;
25
26 nativeBuildInputs = [
27 setuptools-scm
28 ];
29
30 checkInputs = [
31 pytestCheckHook
32 ];
33
34 disabledTests = [
35 # Test requires network access
36 "test_discovery"
37 ];
38
39 pythonImportsCheck = [
40 "tololib"
41 ];
42
43 meta = with lib; {
44 description = "Python Library for Controlling TOLO Sauna/Steam Bath Devices";
45 homepage = "https://gitlab.com/MatthiasLohr/tololib";
46 license = with licenses; [ mit ];
47 maintainers = with maintainers; [ fab ];
48 };
49}