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.

74 lines
1.2 KiB
Nix
Raw Normal View History

2023-05-05 18:39:58 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, pythonRelaxDepsHook
# 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";
version = "0.21.1";
pyproject = true;
2023-05-05 18:39:58 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-YAMZku8jbdQ8JvUr5aLATIGIiTDmG6CGvfUKo28q7ks=";
2023-05-05 18:39:58 +00:00
};
nativeBuildInputs = [
2023-05-05 18:39:58 +00:00
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"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
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";
};
}