Merge pull request #269922 from sdier/moto

Update moto and dependency py-partiql-parser to latest versions

authored by Martin Weinelt and committed by GitHub f72ea957 24d1305f

+21 -16
+19 -14
pkgs/development/python-modules/moto/default.nix
··· 37 37 # tests 38 38 , freezegun 39 39 , pytestCheckHook 40 + , pytest-order 40 41 , pytest-xdist 41 42 }: 42 43 43 44 buildPythonPackage rec { 44 45 pname = "moto"; 45 - version = "4.2.6"; 46 + version = "4.2.10"; 46 47 pyproject = true; 47 48 48 49 disabled = pythonOlder "3.6"; 49 50 50 51 src = fetchPypi { 51 52 inherit pname version; 52 - hash = "sha256-zgpV1+dWxZpaQ5LHCXqlylPgCqLdP3AACTNWvhXnrvk="; 53 + hash = "sha256-kllf4odHSjGsPvhHlB67CX6P+ww9bBBuR89XPbBpM7I="; 53 54 }; 54 55 55 56 nativeBuildInputs = [ ··· 95 96 nativeCheckInputs = [ 96 97 freezegun 97 98 pytestCheckHook 99 + pytest-order 98 100 pytest-xdist 99 101 ] ++ passthru.optional-dependencies.all; 100 102 103 + # Some tests depend on AWS credentials environment variables to be set. 104 + env.AWS_ACCESS_KEY_ID = "ak"; 105 + env.AWS_SECRET_ACCESS_KEY = "sk"; 106 + 101 107 pytestFlagsArray = [ 102 108 "-m" "'not network and not requires_docker'" 109 + 110 + # Matches upstream configuration, presumably due to expensive setup/teardown. 111 + "--dist" "loadscope" 103 112 104 113 # Fails at local name resolution 105 114 "--deselect=tests/test_s3/test_multiple_accounts_server.py::TestAccountIdResolution::test_with_custom_request_header" ··· 120 129 # https://github.com/getmoto/moto/pull/6938 121 130 "--deselect=tests/test_awslambda/test_lambda_layers_invoked.py::test_invoke_local_lambda_layers" 122 131 123 - # Racy, expects two timestamp two differ 124 - # https://github.com/getmoto/moto/issues/6946 125 - "--deselect=tests/test_databrew/test_databrew_recipes.py::test_publish_recipe" 132 + # Flaky under parallel execution 133 + "--deselect=tests/test_cloudformation/test_server.py::test_cloudformation_server_get" 134 + "--deselect=tests/test_core/test_moto_api.py::TestModelDataResetForClassDecorator::test_should_find_bucket" 126 135 ]; 127 136 128 137 disabledTestPaths = [ 129 - # Requires pytest-ordering, which is unmaintained 130 - # https://github.com/getmoto/moto/issues/6937 131 - # botocore.exceptions.NoCredentialsError: Unable to locate credentials 132 - "tests/test_dynamodb/test_dynamodb_statements.py" 133 - "tests/test_lakeformation/test_resource_tags_integration.py" 134 - "tests/test_redshiftdata/test_redshiftdata.py" 135 - "tests/test_s3/test_s3_file_handles.py" 136 - "tests/test_s3/test_s3.py" 137 - "tests/test_s3/test_s3_select.py" 138 + # Flaky under parallel execution, Connection Reset errors to localhost. 139 + "tests/test_moto_api/recorder/test_recorder.py" 140 + 141 + # Flaky under parallel execution 142 + "tests/test_resourcegroupstaggingapi/*.py" 138 143 139 144 # Tries to access the network 140 145 "tests/test_batch/test_batch_jobs.py"
+2 -2
pkgs/development/python-modules/py-partiql-parser/default.nix
··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "py-partiql-parser"; 12 - version = "0.4.0"; 12 + version = "0.4.2"; 13 13 pyproject = true; 14 14 15 15 disabled = pythonOlder "3.7"; ··· 18 18 owner = "getmoto"; 19 19 repo = "py-partiql-parser"; 20 20 rev = "refs/tags/${version}"; 21 - hash = "sha256-gxoBc7PjS4EQix38VNX6u9cwy4FCjENcUN1euOJJLCo="; 21 + hash = "sha256-EV5Md7dAkHcBbfF4DhmUHwKxjlXI4Jbb1VryeOwRTWo="; 22 22 }; 23 23 24 24 nativeBuildInputs = [