2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
flet-client-flutter,
|
|
|
|
pythonRelaxDepsHook,
|
2023-08-10 07:59:29 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# build-system
|
|
|
|
poetry-core,
|
2023-08-10 07:59:29 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# propagates
|
|
|
|
fastapi,
|
|
|
|
flet-core,
|
|
|
|
flet-runtime,
|
|
|
|
httpx,
|
|
|
|
oauthlib,
|
|
|
|
packaging,
|
|
|
|
qrcode,
|
|
|
|
cookiecutter,
|
|
|
|
uvicorn,
|
|
|
|
watchdog,
|
|
|
|
websocket-client,
|
|
|
|
websockets,
|
2023-08-10 07:59:29 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flet";
|
2024-04-21 15:54:59 +00:00
|
|
|
inherit (flet-client-flutter) version src;
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
sourceRoot = "${src.name}/sdk/python/packages/flet";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [
|
2023-05-24 13:37:59 +00:00
|
|
|
poetry-core
|
2024-01-25 14:12:00 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
2024-04-21 15:54:59 +00:00
|
|
|
"cookiecutter"
|
|
|
|
"packaging"
|
|
|
|
"watchdog"
|
2024-01-25 14:12:00 +00:00
|
|
|
"websockets"
|
2023-05-24 13:37:59 +00:00
|
|
|
];
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
propagatedBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
fastapi
|
2023-05-24 13:37:59 +00:00
|
|
|
flet-core
|
2024-01-02 11:29:13 +00:00
|
|
|
flet-runtime
|
2024-04-21 15:54:59 +00:00
|
|
|
uvicorn
|
2023-05-24 13:37:59 +00:00
|
|
|
websocket-client
|
|
|
|
watchdog
|
|
|
|
oauthlib
|
|
|
|
websockets
|
|
|
|
httpx
|
|
|
|
packaging
|
2024-01-02 11:29:13 +00:00
|
|
|
qrcode
|
2024-01-13 08:15:51 +00:00
|
|
|
cookiecutter
|
2024-04-21 15:54:59 +00:00
|
|
|
fastapi
|
|
|
|
uvicorn
|
2023-05-24 13:37:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "flet" ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A framework that enables you to easily build realtime web, mobile, and desktop apps in Python";
|
|
|
|
homepage = "https://flet.dev/";
|
|
|
|
changelog = "https://github.com/flet-dev/flet/releases/tag/v${version}";
|
|
|
|
license = lib.licenses.asl20;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
heyimnova
|
|
|
|
lucasew
|
|
|
|
];
|
2023-05-24 13:37:59 +00:00
|
|
|
mainProgram = "flet";
|
|
|
|
};
|
|
|
|
}
|