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