1{ lib
2, buildPythonPackage
3, fetchPypi
4, pyserial
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "ultraheat-api";
10 version = "0.5.7";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 pname = "ultraheat_api";
17 inherit version;
18 hash = "sha256-rRQTjV9hyUawMaXBgUx/d6pQjM8ffjcFJE2x08Cf4Gw=";
19 };
20
21 propagatedBuildInputs = [
22 pyserial
23 ];
24
25 # Source is not tagged, only PyPI releases
26 doCheck = false;
27
28 pythonImportsCheck = [
29 "ultraheat_api"
30 ];
31
32 meta = with lib; {
33 description = "Module for working with data from Landis+Gyr Ultraheat heat meter unit";
34 homepage = "https://github.com/vpathuis/uh50";
35 license = licenses.mit;
36 maintainers = with maintainers; [ fab ];
37 };
38}