2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
# build-system
|
|
|
|
, poetry-core
|
|
|
|
|
|
|
|
# propagates
|
|
|
|
, flet-core
|
|
|
|
, httpx
|
|
|
|
, oauthlib
|
|
|
|
, packaging
|
|
|
|
, typing-extensions
|
|
|
|
, watchdog
|
|
|
|
, websocket-client
|
|
|
|
, websockets
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flet";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.7.4";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-vFPjN+5wIygtP035odAOSdF9PQe6eXz6CJ9Q0d8ScFo=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace 'httpx = "^0.23' 'httpx = ">=0.23' \
|
|
|
|
--replace 'watchdog = "^2' 'watchdog = ">=2'
|
|
|
|
'';
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [
|
2023-05-24 13:37:59 +00:00
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-05-24 13:37:59 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|