python3Packages.functions-framework: cleanup, skip failing tests on python>=3.14 (#521228)
This commit is contained in:
@@ -1,27 +1,34 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonAtLeast,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# dependencies
|
||||
click,
|
||||
cloudevents,
|
||||
deprecation,
|
||||
docker,
|
||||
fetchFromGitHub,
|
||||
flask,
|
||||
gunicorn,
|
||||
httpx,
|
||||
pretend,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
requests,
|
||||
setuptools,
|
||||
starlette,
|
||||
uvicorn,
|
||||
uvicorn-worker,
|
||||
watchdog,
|
||||
werkzeug,
|
||||
|
||||
# tests
|
||||
docker,
|
||||
httpx,
|
||||
pretend,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
requests,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "functions-framework";
|
||||
version = "3.10.1";
|
||||
pyproject = true;
|
||||
@@ -29,7 +36,7 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "GoogleCloudPlatform";
|
||||
repo = "functions-framework-python";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-CEH0PokH3lhyJl7OPIpJkaKZxAUp1fYVia89DtGoJ7k=";
|
||||
};
|
||||
|
||||
@@ -62,6 +69,11 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "functions_framework" ];
|
||||
|
||||
disabledTestPaths = lib.optionals (pythonAtLeast "3.14") [
|
||||
# _pickle.PicklingError: Can't pickle local object <function Flask.__init__.<locals>.<lambda> at 0x7ffff47e54e0>
|
||||
"tests/test_timeouts.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Test requires a running Docker instance
|
||||
"test_cloud_run_http"
|
||||
@@ -70,8 +82,8 @@ buildPythonPackage rec {
|
||||
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";
|
||||
changelog = "https://github.com/GoogleCloudPlatform/functions-framework-python/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user