1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 mock, 6 parameterized, 7 pytestCheckHook, 8 pythonOlder, 9 requests, 10 responses, 11}: 12 13buildPythonPackage rec { 14 pname = "nuheat"; 15 version = "1.0.1"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "broox"; 22 repo = "python-nuheat"; 23 tag = version; 24 hash = "sha256-EsPuwILfKc1Bpvu0Qos7yooC3dBaqf46lWhiSZdu3sc="; 25 }; 26 27 propagatedBuildInputs = [ requests ]; 28 29 nativeCheckInputs = [ 30 mock 31 parameterized 32 pytestCheckHook 33 responses 34 ]; 35 36 pythonImportsCheck = [ "nuheat" ]; 37 38 meta = with lib; { 39 description = "Library to interact with NuHeat Signature and Mapei Mapeheat radiant floor thermostats"; 40 homepage = "https://github.com/broox/python-nuheat"; 41 changelog = "https://github.com/broox/python-nuheat/releases/tag/${version}"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}