1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 poetry-core,
7 aiohttp,
8 tenacity,
9}:
10
11buildPythonPackage rec {
12 pname = "py-aosmith";
13 version = "1.0.8";
14 pyproject = true;
15
16 disabled = pythonOlder "3.10";
17
18 src = fetchFromGitHub {
19 owner = "bdr99";
20 repo = "py-aosmith";
21 rev = "refs/tags/${version}";
22 hash = "sha256-TjBjyWxBPrZEY/o1DZ+GiFTHTW37WwFN0oyJSyGru28=";
23 };
24
25 nativeBuildInputs = [ poetry-core ];
26
27 propagatedBuildInputs = [
28 aiohttp
29 tenacity
30 ];
31
32 pythonImportsCheck = [ "py_aosmith" ];
33
34 # upstream has no tests
35 doCheck = false;
36
37 meta = {
38 description = "Python client library for A. O. Smith water heaters";
39 homepage = "https://github.com/bdr99/py-aosmith";
40 license = lib.licenses.mit;
41 maintainers = with lib.maintainers; [ dotlambda ];
42 };
43}