about summary refs log tree commit diff
path: root/pkgs/development/python-modules/nuheat/default.nix
blob: 97607ceab3dcf9141f84e656e4a1f7b8c38ba7c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, parameterized
, pytestCheckHook
, pythonOlder
, requests
, responses
}:

buildPythonPackage rec {
  pname = "nuheat";
  version = "1.0.1";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "broox";
    repo = "python-nuheat";
    rev = "refs/tags/${version}";
    hash = "sha256-EsPuwILfKc1Bpvu0Qos7yooC3dBaqf46lWhiSZdu3sc=";
  };

  propagatedBuildInputs = [
    requests
  ];

  nativeCheckInputs = [
    mock
    parameterized
    pytestCheckHook
    responses
  ];

  pythonImportsCheck = [
    "nuheat"
  ];

  meta = with lib; {
    description = "Library to interact with NuHeat Signature and Mapei Mapeheat radiant floor thermostats";
    homepage = "https://github.com/broox/python-nuheat";
    changelog = "https://github.com/broox/python-nuheat/releases/tag/${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}