Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

121 lines
2.1 KiB
Nix

{
lib,
aiofiles,
aiohttp,
buildPythonPackage,
certifi,
docutils,
fastapi,
fetchFromGitHub,
httpx,
ifaddr,
itsdangerous,
jinja2,
libsass,
markdown2,
matplotlib,
orjson,
pandas,
pkgs,
plotly,
poetry-core,
polars,
pyecharts,
pygments,
pytest-asyncio,
pytest-selenium,
pytestCheckHook,
python-multipart,
python-socketio,
pywebview,
redis,
requests,
setuptools,
typing-extensions,
urllib3,
uvicorn,
vbuild,
watchfiles,
webdriver-manager,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "nicegui";
version = "2.24.2";
pyproject = true;
src = fetchFromGitHub {
owner = "zauberzeug";
repo = "nicegui";
tag = "v${version}";
hash = "sha256-DfYNwtH3p1frF8ehKjl7P1iPQZ+icD4YKZHpD/9oj6Q=";
};
pythonRelaxDeps = [ "requests" ];
build-system = [
poetry-core
setuptools
];
dependencies = [
aiofiles
aiohttp
certifi
docutils
fastapi
httpx
ifaddr
itsdangerous
jinja2
markdown2
orjson
pygments
python-multipart
python-socketio
requests
typing-extensions
urllib3
uvicorn
vbuild
watchfiles
];
optional-dependencies = {
# Circular dependency
# highcharts = [ nicegui-highcharts ];
matplotlib = [ matplotlib ];
native = [ pywebview ];
plotly = [ plotly ];
sass = [ libsass ];
redis = [ redis ];
};
nativeCheckInputs = [
pandas
pkgs.chromedriver
polars
pyecharts
pytest-asyncio
pytest-selenium
pytestCheckHook
webdriver-manager
writableTmpDirAsHomeHook
]
++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "nicegui" ];
# chromedriver release doesn't seems to be supported, try with next release
doCheck = false;
meta = {
description = "Module to create web-based user interfaces";
homepage = "https://github.com/zauberzeug/nicegui/";
changelog = "https://github.com/zauberzeug/nicegui/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}