nixpkgs/pkgs/development/python-modules/flet/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

82 lines
1.3 KiB
Nix
Raw Permalink Normal View History

2023-05-05 18:39:58 +00:00
{
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,
2023-05-05 18:39:58 +00:00
}:
buildPythonPackage rec {
pname = "flet";
inherit (flet-client-flutter) version src;
pyproject = true;
2023-05-05 18:39:58 +00:00
sourceRoot = "${src.name}/sdk/python/packages/flet";
2023-05-05 18:39:58 +00:00
nativeBuildInputs = [
2023-05-05 18:39:58 +00:00
poetry-core
];
makeWrapperArgs = [
"--prefix" "PYTHONPATH" ":" "$PYTHONPATH"
];
pythonRelaxDeps = [
"cookiecutter"
"packaging"
"qrcode"
"watchdog"
"websockets"
2023-05-05 18:39:58 +00:00
];
propagatedBuildInputs = [
fastapi
2023-05-05 18:39:58 +00:00
flet-core
flet-runtime
uvicorn
2023-05-05 18:39:58 +00:00
websocket-client
watchdog
oauthlib
websockets
httpx
packaging
qrcode
cookiecutter
fastapi
uvicorn
2023-05-05 18:39:58 +00:00
];
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
];
2023-05-05 18:39:58 +00:00
mainProgram = "flet";
};
}