summary refs log tree commit diff
path: root/pkgs/development/python-modules/waterfurnace/default.nix
blob: 526066f1fa74af23d5b535e36c807a1c3c853e8f (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
{ lib
, buildPythonPackage
, click
, fetchFromGitHub
, mock
, pytest-runner
, pytestCheckHook
, requests
, websocket-client
}:

buildPythonPackage rec {
  pname = "waterfurnace";
  version = "1.1.0";

  src = fetchFromGitHub {
    owner = "sdague";
    repo = pname;
    rev = "v${version}";
    sha256 = "1ba247fw1fvi7zy31zj2wbjq7fajrbxhp139cl9jj67rfvxfv8xf";
  };

  propagatedBuildInputs = [
    click
    pytest-runner
    requests
    websocket-client
  ];

  checkInputs = [
    mock
    pytestCheckHook
  ];

  pythonImportsCheck = [ "waterfurnace" ];

  meta = with lib; {
    description = "Python interface to waterfurnace geothermal systems";
    homepage = "https://github.com/sdague/waterfurnace";
    license = with licenses; [ asl20 ];
    maintainers = with maintainers; [ fab ];
  };
}