python3Packages.flet: init at 0.6.2

This commit is contained in:
heyimnova 2023-05-05 19:39:58 +01:00 committed by Anderson Torres
parent 1ea1f51f80
commit ee95722f9b
3 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,50 @@
{ lib
, python3
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "flet";
version = "0.6.2";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-EDNATwO2N4jXVC5H1VmXqC9XGTnQo8vLvTEozRYZuj4=";
};
patches = [
./pyproject.toml.patch
];
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
flet-core
typing-extensions
websocket-client
watchdog
oauthlib
websockets
httpx
packaging
];
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";
};
}

View File

@ -0,0 +1,11 @@
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -20,7 +20,7 @@ flet-core = "0.6.2"
python = "^3.7"
typing-extensions = { version = "^4.4.0", python = "<3.8" }
websocket-client = "^1.4.2"
-watchdog = "^2.2.1"
+watchdog = ">=2.2.1"
oauthlib = "^3.2.2"
websockets = "^10.4"
httpx = "^0.23.3"

View File

@ -3671,6 +3671,8 @@ self: super: with self; {
fleep = callPackage ../development/python-modules/fleep { };
flet = callPackage ../development/python-modules/flet { };
flet-core = callPackage ../development/python-modules/flet-core { };
flexmock = callPackage ../development/python-modules/flexmock { };