1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 mock,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "radiotherm";
12 version = "2.1.0";
13 format = "setuptools";
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "mhrivnak";
18 repo = "radiotherm";
19 rev = version;
20 sha256 = "0p37pc7l2malmjfkdlh4q2cfa6dqpsk1rah2j2xil0pj57ai6bks";
21 };
22
23 nativeCheckInputs = [
24 mock
25 pytestCheckHook
26 ];
27
28 pythonImportsCheck = [ "radiotherm" ];
29
30 meta = with lib; {
31 description = "Python library for Wifi Radiothermostat";
32 homepage = "https://github.com/mhrivnak/radiotherm";
33 license = with licenses; [ bsd3 ];
34 maintainers = with maintainers; [ fab ];
35 };
36}