nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 awesomeversion,
5 buildPythonPackage,
6 fetchPypi,
7 hatchling,
8}:
9
10buildPythonPackage (finalAttrs: {
11 pname = "tplink-omada-client";
12 version = "1.5.5";
13 pyproject = true;
14
15 src = fetchPypi {
16 pname = "tplink_omada_client";
17 inherit (finalAttrs) version;
18 hash = "sha256-uefZ1MIt0xuLo1JZEYIJhrwY4V8KG0Rb16+ZY7PwEwI=";
19 };
20
21 build-system = [ hatchling ];
22
23 dependencies = [
24 aiohttp
25 awesomeversion
26 ];
27
28 # Module have no tests
29 doCheck = false;
30
31 pythonImportsCheck = [ "tplink_omada_client" ];
32
33 meta = {
34 description = "Library for the TP-Link Omada SDN Controller API";
35 homepage = "https://github.com/MarkGodwin/tplink-omada-api";
36 changelog = "https://github.com/MarkGodwin/tplink-omada-api/releases/tag/release%2Fv${finalAttrs.version}";
37 license = lib.licenses.mit;
38 maintainers = with lib.maintainers; [ fab ];
39 mainProgram = "omada";
40 };
41})