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