1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pytest-runner
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "iaqualink";
12 version = "0.4.1";
13 disabled = pythonOlder "3.8";
14
15 src = fetchFromGitHub {
16 owner = "flz";
17 repo = "iaqualink-py";
18 rev = "v${version}";
19 sha256 = "0xgxajw38jrc55xh8w8mq0dk82ml77mfs8yn05gcpv8l24y70chq";
20 };
21
22 nativeBuildInputs = [ pytest-runner ];
23
24 propagatedBuildInputs = [ aiohttp ];
25
26 checkInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "iaqualink" ];
29
30 meta = with lib; {
31 description = "Python library for Jandy iAqualink";
32 homepage = "https://github.com/flz/iaqualink-py";
33 license = with licenses; [ bsd3 ];
34 maintainers = with maintainers; [ fab ];
35 };
36}