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.0b4";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitLab {
18 owner = "MatthiasLohr";
19 repo = pname;
20 rev = "v${version}";
21 hash = "sha256-2OQaJR70bx8qWs1IPErF+B3X1iRvHW74axTqtdvum3U=";
22 };
23
24 SETUPTOOLS_SCM_PRETEND_VERSION = version;
25
26 nativeBuildInputs = [
27 setuptools-scm
28 ];
29
30 nativeCheckInputs = [
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 changelog = "https://gitlab.com/MatthiasLohr/tololib/-/blob/v${version}/CHANGELOG.md";
47 license = with licenses; [ mit ];
48 maintainers = with maintainers; [ fab ];
49 };
50}