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