11 buildPythonPackage rec {
16 disabled = pythonOlder "3.7";
18 src = fetchFromGitLab {
19 owner = "MatthiasLohr";
21 rev = "refs/tags/v${version}";
22 hash = "sha256-TxWKV2nrnCxZmj6+wBDMSdJRvKV+MsPFbOyIlUJYJ3Q=";
25 build-system = [ setuptools-scm ];
27 nativeCheckInputs = [ pytestCheckHook ];
30 export PATH="$PATH:$out/bin";
33 pythonImportsCheck = [ "tololib" ];
35 # Network discovery doesn't work in the sandbox for darwin
36 doCheck = !stdenv.hostPlatform.isDarwin;
39 description = "Python Library for Controlling TOLO Sauna/Steam Bath Devices";
40 homepage = "https://gitlab.com/MatthiasLohr/tololib";
41 changelog = "https://gitlab.com/MatthiasLohr/tololib/-/blob/v${version}/CHANGELOG.md";
42 license = with licenses; [ mit ];
43 maintainers = with maintainers; [ fab ];
44 mainProgram = "tolo-cli";