From 451acdfe701df1db948d73ced26464de6190ea44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 3 Mar 2026 18:30:39 -0800 Subject: [PATCH] python3Packages.moto: reduce test dependencies The sagemaker and cfn-lint packages don't work on Python 3.14. Removing them from `nativeCheckInputs` lets us build moto for Python 3.14. --- .../python-modules/moto/default.nix | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/moto/default.nix b/pkgs/development/python-modules/moto/default.nix index 20c817a47442..88429d2befe8 100644 --- a/pkgs/development/python-modules/moto/default.nix +++ b/pkgs/development/python-modules/moto/default.nix @@ -29,7 +29,6 @@ pyyaml, requests, responses, - sagemaker, setuptools, werkzeug, xmltodict, @@ -294,13 +293,21 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; nativeCheckInputs = [ + antlr4-python3-runtime + aws-xray-sdk + docker + flask + flask-cors freezegun + graphql-core + joserfc + openapi-spec-validator + py-partiql-parser + pyparsing pytest-order pytest-xdist pytestCheckHook - sagemaker - ] - ++ optional-dependencies.server; + ]; # Some tests depend on AWS credentials environment variables to be set. env.AWS_ACCESS_KEY_ID = "ak"; @@ -382,8 +389,12 @@ buildPythonPackage rec { # botocore.exceptions.ParamValidationError: Parameter validation failed: Unknown parameter in input: "EnableWorkDocs", must be one of: [...] "tests/test_workspaces/test_workspaces.py" - # Requires sagemaker client + # Requires sagemaker which is broken on Python 3.14 "other_langs/tests_sagemaker_client/test_model_training.py" + "other_langs/tests_sagemaker_client/test_pipeline_session.py" + + # Requires cfn-lint which is broken on Python 3.14 + "tests/test_cloudformation/test_validate.py" ]; meta = {