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