1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 prometheus-client,
6 pyserial,
7 pythonOlder,
8 pyyaml,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "finitude";
14 version = "0.1.1";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "dulitz";
21 repo = pname;
22 rev = "v${version}";
23 hash = "sha256-yCI5UCRDhw+dJoTKyjmHbAGBm3by2AyxHKlqCywnLcs=";
24 };
25
26 nativeBuildInputs = [ setuptools ];
27
28 propagatedBuildInputs = [
29 pyserial
30 prometheus-client
31 pyyaml
32 ];
33
34 # Module has no tests
35 doCheck = false;
36
37 pythonImportsCheck = [ "finitude" ];
38
39 meta = with lib; {
40 description = "Python module to get data from ABCD bus (RS-485) used by Carrier Infinity and Bryant Evolution HVAC systems";
41 homepage = "https://github.com/dulitz/finitude";
42 license = licenses.mit;
43 maintainers = with maintainers; [ fab ];
44 };
45}