1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchPypi
5, hatchling
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "tplink-omada-client";
12 version = "1.0.2";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.9";
16
17 src = fetchPypi {
18 pname = "tplink_omada_client";
19 inherit version;
20 hash = "sha256-W3WJPYQofNcpW5AyIW3ms6FxQ2yWzocL3nrZGCdm+gk=";
21 };
22
23 nativeBuildInputs = [
24 hatchling
25 ];
26
27 propagatedBuildInputs = [
28 aiohttp
29 ];
30
31 # Module have no tests
32 doCheck = false;
33
34 pythonImportsCheck = [
35 "tplink_omada_client"
36 ];
37
38 meta = with lib; {
39 description = "Library for the TP-Link Omada SDN Controller API";
40 homepage = "https://github.com/MarkGodwin/tplink-omada-api";
41 license = licenses.mit;
42 maintainers = with maintainers; [ fab ];
43 };
44}