nixpkgs/pkgs/development/python-modules/fasthtml/default.nix
Vladimír Čunát 6a56b38c13
python3Packages.fasthtml: 0.12.48 -> 0.13.3
.starlette upgrade in 83ece5c3a1 broke compatibility:
https://hydra.nixos.org/build/331250021/nixlog/6/tail

Upstream fixes that v0.13.0 and updating past 0.13.3 would need resolving
 - fastcore>=1.12.41 not satisfied by version 1.12.39
(which isn't great approach for stable 26.05 which motivates this commit)
https://github.com/AnswerDotAI/fasthtml/releases
2026-06-21 09:48:15 +02:00

91 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
beautifulsoup4,
fastcore,
fastlite,
httpx,
itsdangerous,
oauthlib,
python-dateutil,
python-multipart,
starlette,
uvicorn,
# optional-dependencies
ipython,
lxml,
monsterui ? null, # TODO: package
pyjwt,
pysymbol-llm ? null, # TODO: package
# tests
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "fasthtml";
version = "0.13.3";
pyproject = true;
src = fetchFromGitHub {
owner = "AnswerDotAI";
repo = "fasthtml";
tag = finalAttrs.version;
hash = "sha256-PS5HGegC6pG/bJAGrKDsRYguBnNS9EDrZIjWvjErO4M=";
};
build-system = [
setuptools
];
dependencies = [
beautifulsoup4
fastcore
fastlite
httpx
itsdangerous
oauthlib
python-dateutil
python-multipart
starlette
uvicorn
];
optional-dependencies = {
dev = [
ipython
lxml
monsterui
pyjwt
pysymbol-llm
];
};
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# https://github.com/AnswerDotAI/fasthtml/issues/835
"test_get_toaster_with_typehint"
];
pythonImportsCheck = [
"fasthtml"
];
meta = {
description = "The fastest way to create an HTML app";
homepage = "https://github.com/AnswerDotAI/fasthtml";
changelog = "https://github.com/AnswerDotAI/fasthtml/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = [ ];
};
})