2023-05-05 18:39:58 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2024-01-21 01:20:04 +00:00
|
|
|
, pythonRelaxDepsHook
|
2023-07-28 14:07:00 +00:00
|
|
|
|
|
|
|
# build-system
|
|
|
|
, poetry-core
|
|
|
|
|
|
|
|
# propagates
|
2024-03-17 17:47:29 +00:00
|
|
|
, fastapi
|
2023-07-28 14:07:00 +00:00
|
|
|
, flet-core
|
2023-12-08 13:13:19 +00:00
|
|
|
, flet-runtime
|
2023-07-28 14:07:00 +00:00
|
|
|
, httpx
|
|
|
|
, oauthlib
|
|
|
|
, packaging
|
2023-12-08 13:13:19 +00:00
|
|
|
, qrcode
|
2024-01-03 11:15:26 +00:00
|
|
|
, cookiecutter
|
2024-03-17 17:47:29 +00:00
|
|
|
, uvicorn
|
2023-07-28 14:07:00 +00:00
|
|
|
, watchdog
|
|
|
|
, websocket-client
|
|
|
|
, websockets
|
|
|
|
|
2023-05-05 18:39:58 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flet";
|
2024-03-08 01:40:11 +00:00
|
|
|
version = "0.21.1";
|
2024-01-21 01:20:04 +00:00
|
|
|
pyproject = true;
|
2023-05-05 18:39:58 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-03-08 01:40:11 +00:00
|
|
|
hash = "sha256-YAMZku8jbdQ8JvUr5aLATIGIiTDmG6CGvfUKo28q7ks=";
|
2023-05-05 18:39:58 +00:00
|
|
|
};
|
|
|
|
|
2023-07-28 14:07:00 +00:00
|
|
|
nativeBuildInputs = [
|
2023-05-05 18:39:58 +00:00
|
|
|
poetry-core
|
2024-01-21 01:20:04 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"websockets"
|
2023-05-05 18:39:58 +00:00
|
|
|
];
|
|
|
|
|
2023-07-28 14:07:00 +00:00
|
|
|
propagatedBuildInputs = [
|
2024-03-17 17:47:29 +00:00
|
|
|
fastapi
|
2023-05-05 18:39:58 +00:00
|
|
|
flet-core
|
2023-12-08 13:13:19 +00:00
|
|
|
flet-runtime
|
2024-03-17 17:47:29 +00:00
|
|
|
uvicorn
|
2023-05-05 18:39:58 +00:00
|
|
|
websocket-client
|
|
|
|
watchdog
|
|
|
|
oauthlib
|
|
|
|
websockets
|
|
|
|
httpx
|
|
|
|
packaging
|
2023-12-08 13:13:19 +00:00
|
|
|
qrcode
|
2024-01-03 11:15:26 +00:00
|
|
|
cookiecutter
|
2023-05-05 18:39:58 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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 = [ lib.maintainers.heyimnova ];
|
|
|
|
mainProgram = "flet";
|
|
|
|
};
|
|
|
|
}
|