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