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