about summary refs log tree commit diff
path: root/pkgs/tools/networking/apc-temp-fetch/default.nix
blob: 13ba358d933e887d83be15ae116b683bc1006294 (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
{ lib
, buildPythonApplication
, fetchPypi
, pythonOlder
, requests
}:

buildPythonApplication rec {
  pname = "apc-temp-fetch";
  version = "0.0.2";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    pname = "APC-Temp-fetch";
    inherit version;
    hash = "sha256-lXGj/xrOkdMMYvuyVVSCojjQlzISFUT14VTn//iOARo=";
  };

  propagatedBuildInputs = [
    requests
  ];

  pythonImportsCheck = [
    "APC_Temp_fetch"
  ];

  meta = with lib; {
    description = "unified temperature fetcher interface to several UPS network adapters";
    homepage = "https://github.com/YZITE/APC_Temp_fetch";
    license = licenses.asl20;
    maintainers = [ ];
  };
}