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