51 lines
965 B
Nix
51 lines
965 B
Nix
|
{ 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";
|
||
|
};
|
||
|
}
|