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
78 lines
1.4 KiB
Nix
78 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
click,
|
|
cloudevents,
|
|
deprecation,
|
|
docker,
|
|
fetchFromGitHub,
|
|
flask,
|
|
gunicorn,
|
|
httpx,
|
|
pretend,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
requests,
|
|
setuptools,
|
|
starlette,
|
|
uvicorn,
|
|
uvicorn-worker,
|
|
watchdog,
|
|
werkzeug,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "functions-framework";
|
|
version = "3.9.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GoogleCloudPlatform";
|
|
repo = "functions-framework-python";
|
|
tag = "v${version}";
|
|
hash = "sha256-TvC+URJtsquBX/5F5Z2Nw/4sD3hsvF2c/jlv87lGjfM=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
pythonRelaxDeps = [
|
|
"cloudevents"
|
|
];
|
|
dependencies = [
|
|
click
|
|
cloudevents
|
|
deprecation
|
|
flask
|
|
gunicorn
|
|
starlette
|
|
uvicorn
|
|
uvicorn-worker
|
|
watchdog
|
|
werkzeug
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
docker
|
|
httpx
|
|
pretend
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
requests
|
|
];
|
|
|
|
pythonImportsCheck = [ "functions_framework" ];
|
|
|
|
disabledTests = [
|
|
# Test requires a running Docker instance
|
|
"test_cloud_run_http"
|
|
];
|
|
|
|
meta = {
|
|
description = "FaaS (Function as a service) framework for writing portable Python functions";
|
|
homepage = "https://github.com/GoogleCloudPlatform/functions-framework-python";
|
|
changelog = "https://github.com/GoogleCloudPlatform/functions-framework-python/blob/${src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|