1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6, setuptools
7}:
8
9buildPythonPackage rec {
10 pname = "aioaseko";
11 version = "0.0.2";
12 format = "pyproject";
13
14 disabled = pythonOlder "3.8";
15
16 src = fetchFromGitHub {
17 owner = "milanmeu";
18 repo = pname;
19 rev = "v${version}";
20 hash = "sha256-nJRVNBYfBcLYnBsTpQZYMHYWh0+hQObVKJ7sOXFwDjc=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 ];
26
27 propagatedBuildInputs = [
28 aiohttp
29 ];
30
31 # Module has no tests
32 doCheck = false;
33
34 pythonImportsCheck = [
35 "aioaseko"
36 ];
37
38 meta = with lib; {
39 description = "Module to interact with the Aseko Pool Live API";
40 homepage = "https://github.com/milanmeu/aioaseko";
41 license = with licenses; [ lgpl3Plus ];
42 maintainers = with maintainers; [ fab ];
43 };
44}