-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
python3Packages.flet: init at 0.6.2 #229482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| { lib | ||
| , python3 | ||
| , buildPythonPackage | ||
| , fetchPypi | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "flet-core"; | ||
| version = "0.6.2"; | ||
| format = "pyproject"; | ||
|
|
||
| src = fetchPypi { | ||
| pname = "flet_core"; | ||
| inherit version; | ||
| hash = "sha256-WMkm+47xhuYz1HsiPfF7YbOCg7Xlbj9oHI9nVtwAb/w="; | ||
| }; | ||
|
|
||
| nativeBuildInputs = with python3.pkgs; [ | ||
| poetry-core | ||
| ]; | ||
|
|
||
| propagatedBuildInputs = with python3.pkgs; [ | ||
| typing-extensions | ||
| repath | ||
| ]; | ||
|
|
||
| doCheck = false; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why? Also, |
||
|
|
||
| meta = { | ||
| description = "The library is the foundation of Flet framework and is not intended to be used directly"; | ||
| homepage = "https://flet.dev/"; | ||
| license = lib.licenses.asl20; | ||
| maintainers = [ lib.maintainers.heyimnova ]; | ||
| }; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why? |
||
|
|
||
| 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"; | ||
| }; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use |
||
| oauthlib = "^3.2.2" | ||
| websockets = "^10.4" | ||
| httpx = "^0.23.3" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| { lib | ||
| , python3 | ||
| , buildPythonPackage | ||
| , fetchPypi | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "repath"; | ||
| version = "0.9.0"; | ||
|
|
||
| src = fetchPypi { | ||
| inherit pname version; | ||
| hash = "sha256-gpITm6xqDkP9nXBgXU6NrrJdRmcuSE7TGiTHzgrvD7c="; | ||
| }; | ||
|
|
||
| propagatedBuildInputs = with python3.pkgs; [ | ||
| six | ||
| ]; | ||
|
|
||
| pythonImportsCheck = [ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also add |
||
| "repath" | ||
| ]; | ||
|
|
||
| meta = { | ||
| description = "A port of the node module path-to-regexp to Python"; | ||
| homepage = "https://github.com/nickcoutsos/python-repath"; | ||
| license = lib.licenses.mit; | ||
| maintainers = [ lib.maintainers.heyimnova ]; | ||
| }; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't use
python3.pkgsin the python package set. Instead, we need to pass all python packages via function arguments, otherwise you are pinning this to just one python version.I'm fixing this up in #244135.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also prevents people from using
packageOverrides.@AndersonTorres In the future please request a review from someone who knows Python packaging before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in ae735c5 ddc1932 c7437c5 and two more in e66ea73 and 92d6b02