587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
76 lines
1.2 KiB
Nix
76 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, flet-client-flutter
|
|
, pythonRelaxDepsHook
|
|
|
|
# build-system
|
|
, poetry-core
|
|
|
|
# propagates
|
|
, fastapi
|
|
, flet-core
|
|
, flet-runtime
|
|
, httpx
|
|
, oauthlib
|
|
, packaging
|
|
, qrcode
|
|
, cookiecutter
|
|
, uvicorn
|
|
, watchdog
|
|
, websocket-client
|
|
, websockets
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flet";
|
|
inherit (flet-client-flutter) version src;
|
|
|
|
pyproject = true;
|
|
|
|
sourceRoot = "${src.name}/sdk/python/packages/flet";
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"cookiecutter"
|
|
"packaging"
|
|
"watchdog"
|
|
"websockets"
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
fastapi
|
|
flet-core
|
|
flet-runtime
|
|
uvicorn
|
|
websocket-client
|
|
watchdog
|
|
oauthlib
|
|
websockets
|
|
httpx
|
|
packaging
|
|
qrcode
|
|
cookiecutter
|
|
fastapi
|
|
uvicorn
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"flet"
|
|
];
|
|
|
|
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;
|
|
maintainers = with lib.maintainers; [ heyimnova lucasew ];
|
|
mainProgram = "flet";
|
|
};
|
|
}
|