92 lines
1.5 KiB
Nix
92 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.12.48";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AnswerDotAI";
|
|
repo = "fasthtml";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-lMAuIw4sMkS3XSG/0Bs0iQPSjMusbmjUKv0w4cINwas=";
|
|
};
|
|
|
|
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 = [ ];
|
|
};
|
|
})
|