Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 87 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788{ lib, buildPythonPackage, flet-client-flutter,
# build-system poetry-core, pytestCheckHook,
# propagates fastapi, httpx, oauthlib, packaging, qrcode, repath, cookiecutter, uvicorn, watchdog, websocket-client, websockets,}:
buildPythonPackage rec { pname = "flet"; inherit (flet-client-flutter) version src; pyproject = true;
sourceRoot = "${src.name}/sdk/python/packages/flet";
build-system = [ poetry-core ];
nativeCheckInputs = [ pytestCheckHook ];
makeWrapperArgs = [ "--prefix" "PYTHONPATH" ":" "$PYTHONPATH" ];
_flet_version = '' version = "${version}" def update_version(): pass ''; _flet_utils_pip = '' def install_flet_package(name: str): pass '';
postPatch = '' # nerf out nagging about pip echo "$_flet_version" > src/flet/version.py echo "$_flet_utils_pip" >> src/flet/utils/pip.py '';
dependencies = [ fastapi uvicorn websocket-client watchdog oauthlib websockets httpx packaging repath qrcode cookiecutter fastapi uvicorn ];
pythonImportsCheck = [ "flet" ];
meta = { description = "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 = with lib.maintainers; [ heyimnova lucasew ]; mainProgram = "flet"; };}