python3Packages.flet-desktop: init
Signed-off-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
parent
79e6edf346
commit
e52080a8b9
@ -7,6 +7,7 @@
|
||||
poetry-core,
|
||||
|
||||
flet,
|
||||
flet-desktop,
|
||||
qrcode,
|
||||
toml,
|
||||
watchdog,
|
||||
@ -23,6 +24,7 @@ buildPythonPackage rec {
|
||||
|
||||
dependencies = [
|
||||
flet
|
||||
flet-desktop
|
||||
qrcode
|
||||
toml
|
||||
watchdog
|
||||
|
||||
43
pkgs/development/python-modules/flet-desktop/default.nix
Normal file
43
pkgs/development/python-modules/flet-desktop/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
flet-client-flutter,
|
||||
|
||||
# build-system
|
||||
poetry-core,
|
||||
|
||||
flet,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flet-desktop";
|
||||
inherit (flet-client-flutter) version src;
|
||||
pyproject = true;
|
||||
|
||||
sourceRoot = "${src.name}/sdk/python/packages/flet-desktop";
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
dependencies = [ flet ];
|
||||
|
||||
_flet_setup_view = ''
|
||||
if 'FLET_VIEW_PATH' not in os.environ:
|
||||
os.environ['FLET_VIEW_PATH'] = '${flet-client-flutter}/bin'
|
||||
'';
|
||||
postPatch = ''
|
||||
echo "$_flet_setup_view" >> src/flet_desktop/__init__.py
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "flet_desktop" ];
|
||||
|
||||
meta = {
|
||||
description = "Compiled Flutter Flet desktop client.";
|
||||
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
|
||||
];
|
||||
};
|
||||
}
|
||||
@ -4778,6 +4778,8 @@ self: super: with self; {
|
||||
|
||||
flet-cli = callPackage ../development/python-modules/flet-cli { };
|
||||
|
||||
flet-desktop = callPackage ../development/python-modules/flet-desktop { };
|
||||
|
||||
flexcache = callPackage ../development/python-modules/flexcache { };
|
||||
|
||||
flexit-bacnet = callPackage ../development/python-modules/flexit-bacnet { };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user