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