depot/third_party/nixpkgs/pkgs/development/python-modules/flet/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

80 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
flet-client-flutter,
# 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
];
makeWrapperArgs = [
"--prefix" "PYTHONPATH" ":" "$PYTHONPATH"
];
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 = "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";
};
}