at 24.11-pre 1.3 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 flet-client-flutter, 5 pythonRelaxDepsHook, 6 7 # build-system 8 poetry-core, 9 10 # propagates 11 fastapi, 12 flet-core, 13 flet-runtime, 14 httpx, 15 oauthlib, 16 packaging, 17 qrcode, 18 cookiecutter, 19 uvicorn, 20 watchdog, 21 websocket-client, 22 websockets, 23 24}: 25 26buildPythonPackage rec { 27 pname = "flet"; 28 inherit (flet-client-flutter) version src; 29 30 pyproject = true; 31 32 sourceRoot = "${src.name}/sdk/python/packages/flet"; 33 34 nativeBuildInputs = [ 35 poetry-core 36 pythonRelaxDepsHook 37 ]; 38 39 pythonRelaxDeps = [ 40 "cookiecutter" 41 "packaging" 42 "watchdog" 43 "websockets" 44 ]; 45 46 propagatedBuildInputs = [ 47 fastapi 48 flet-core 49 flet-runtime 50 uvicorn 51 websocket-client 52 watchdog 53 oauthlib 54 websockets 55 httpx 56 packaging 57 qrcode 58 cookiecutter 59 fastapi 60 uvicorn 61 ]; 62 63 doCheck = false; 64 65 pythonImportsCheck = [ "flet" ]; 66 67 meta = { 68 description = "A framework that enables you to easily build realtime web, mobile, and desktop apps in Python"; 69 homepage = "https://flet.dev/"; 70 changelog = "https://github.com/flet-dev/flet/releases/tag/v${version}"; 71 license = lib.licenses.asl20; 72 maintainers = with lib.maintainers; [ 73 heyimnova 74 lucasew 75 ]; 76 mainProgram = "flet"; 77 }; 78}