Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.moto: 5.0.12 -> 5.0.15, python312Packages.py-partiql-parser: 0.5.4 -> 0.5.6 #344153

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
188 changes: 139 additions & 49 deletions pkgs/development/python-modules/moto/default.nix
Original file line number Diff line number Diff line change
@@ -1,57 +1,50 @@
{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,

# build-system
setuptools,

# dependencies
boto3,
botocore,
cryptography,
jinja2,
python-dateutil,
requests,
responses,
werkzeug,
xmltodict,

# optional-dependencies
antlr4-python3-runtime,
aws-xray-sdk,
boto3,
botocore,
buildPythonPackage,
cfn-lint,
flask,
flask-cors,
crc32c,
cryptography,
docker,
fetchPypi,
flask-cors,
flask,
freezegun,
graphql-core,
jinja2,
joserfc,
jsonpath-ng,
jsondiff,
jsonpath-ng,
multipart,
openapi-spec-validator,
py-partiql-parser,
pyparsing,
pyyaml,

# tests
freezegun,
pytestCheckHook,
pytest-order,
pytest-xdist,
pytestCheckHook,
python-dateutil,
pythonOlder,
pyyaml,
requests,
responses,
setuptools,
werkzeug,
xmltodict,
}:

buildPythonPackage rec {
pname = "moto";
version = "5.0.12";
version = "5.0.15";
pyproject = true;

disabled = pythonOlder "3.6";
disabled = pythonOlder "3.8";

src = fetchPypi {
inherit pname version;
hash = "sha256-EL1DS/2jKWOf6VKUcMTCeTgGTBOZhAJOamJRPlCv9Cc=";
hash = "sha256-V6qMKvQXzGSg3f5j5bzRrakPUHm3PN0fdMTp+zChp+Y=";
};

build-system = [ setuptools ];
Expand All @@ -69,7 +62,6 @@ buildPythonPackage rec {
];

optional-dependencies = {
# non-exhaustive list of extras, that was cobbled together for testing
all = [
antlr4-python3-runtime
aws-xray-sdk
Expand All @@ -83,21 +75,111 @@ buildPythonPackage rec {
jsonpath-ng
multipart
openapi-spec-validator
py-partiql-parser
pyparsing
pyyaml
setuptools
];
proxy = [
antlr4-python3-runtime
aws-xray-sdk
cfn-lint
docker
graphql-core
joserfc
jsondiff
jsonpath-ng
multipart
openapi-spec-validator
py-partiql-parser
pyparsing
pyyaml
setuptools
];
server = [
antlr4-python3-runtime
aws-xray-sdk
cfn-lint
docker
flask
flask-cors
graphql-core
joserfc
jsondiff
jsonpath-ng
openapi-spec-validator
py-partiql-parser
pyparsing
pyyaml
setuptools
];
cognitoidp = [ joserfc ];
apigateway = [
pyyaml
joserfc
openapi-spec-validator
];
apigatewayv2 = [
pyyaml
openapi-spec-validator
];
cloudformation = [
aws-xray-sdk
cfn-lint
docker
graphql-core
joserfc
jsondiff
openapi-spec-validator
py-partiql-parser
pyparsing
pyyaml
setuptools
];
dynamodb = [
docker
py-partiql-parser
];
dynamodbstreams = [
docker
py-partiql-parser
];
events = [ jsonpath-ng ];
glue = [ pyparsing ];
iotdata = [ jsondiff ];
resourcegroupstaggingapi = [
cfn-lint
docker
graphql-core
joserfc
jsondiff
openapi-spec-validator
py-partiql-parser
pyparsing
pyyaml
];
s3 = [
pyyaml
py-partiql-parser
];
stepfunctions = [
antlr4-python3-runtime
jsonpath-ng
];
s3crc32c = [
pyyaml
py-partiql-parser
crc32c
];
};

__darwinAllowLocalNetworking = true;

nativeCheckInputs = [
freezegun
pytestCheckHook
pytest-order
pytest-xdist
pytestCheckHook
] ++ optional-dependencies.all;

# Some tests depend on AWS credentials environment variables to be set.
Expand All @@ -111,36 +193,44 @@ buildPythonPackage rec {
# Matches upstream configuration, presumably due to expensive setup/teardown.
"--dist"
"loadscope"
];

disabledTests = [
# Fails at local name resolution
"--deselect=tests/test_s3/test_multiple_accounts_server.py::TestAccountIdResolution::test_with_custom_request_header"
"--deselect=tests/test_s3/test_server.py::test_s3_server_post_cors_multiple_origins"
"--deselect=tests/test_s3/test_s3_file_handles.py::TestS3FileHandleClosuresUsingMocks::test_create_multipart"
"--deselect=tests/test_core/test_responses_module.py::TestResponsesMockWithPassThru::test_aws_and_http_requests"
"--deselect=tests/test_core/test_responses_module.py::TestResponsesMockWithPassThru::test_http_requests"
"test_with_custom_request_header"
"test_s3_server_post_cors_multiple_origins"
"test_create_multipart"
"test_aws_and_http_requests"
"test_http_requests"

# Fails at resolving google.com
"--deselect=tests/test_firehose/test_firehose_put.py::test_put_record_http_destination"
"--deselect=tests/test_firehose/test_firehose_put.py::test_put_record_batch_http_destination"
"test_put_record_http_destination"
"test_put_record_batch_http_destination"

# Fails at resolving s3.amazonaws.com
"--deselect=tests/test_core/test_request_passthrough.py::test_passthrough_calls_for_wildcard_urls"
"--deselect=tests/test_core/test_request_passthrough.py::test_passthrough_calls_for_specific_url"
"--deselect=tests/test_core/test_request_passthrough.py::test_passthrough_calls_for_entire_service"
"test_passthrough_calls_for_wildcard_urls"
"test_passthrough_calls_for_specific_url"
"test_passthrough_calls_for_entire_service"

# Download recordings returns faulty JSON
"--deselect=tests/test_moto_api/recorder/test_recorder.py::TestRecorder::test_ec2_instance_creation_recording_on"
"--deselect=tests/test_moto_api/recorder/test_recorder.py::TestRecorder::test_ec2_instance_creation__recording_off"
"test_ec2_instance_creation_recording_on"
"test_ec2_instance_creation__recording_off"

# Connection Reset by Peer, when connecting to localhost:5678
"--deselect=tests/test_moto_api/recorder/test_recorder.py::TestRecorder::test_replay"
"test_replay"

# Flaky under parallel execution
"--deselect=tests/test_cloudformation/test_server.py::test_cloudformation_server_get"
"--deselect=tests/test_core/test_moto_api.py::TestModelDataResetForClassDecorator::test_should_find_bucket"
"test_cloudformation_server_get"
"test_should_find_bucket"

# AssertionError: assert ResourceWarning not in [<class 'ResourceWarning'>, <class 'ResourceWarning'>]
"--deselect=ests/test_s3/test_s3_file_handles.py::TestS3FileHandleClosuresUsingMocks::test_delete_object_with_version"
"test_delete_object_with_version"

# KeyError beucase of ap-southeast-5-apse5-az
"test_zoneId_in_availability_zones"

# Parameter validation fails
"test_conditional_write"
];

disabledTestPaths = [
Expand All @@ -165,7 +255,7 @@ buildPythonPackage rec {
];

meta = with lib; {
description = "Allows your tests to easily mock out AWS Services";
description = "Module to allow your tests to easily mock out AWS Services";
homepage = "https://github.com/getmoto/moto";
changelog = "https://github.com/getmoto/moto/blob/${version}/CHANGELOG.md";
license = licenses.asl20;
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/python-modules/py-partiql-parser/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytestCheckHook,
pythonOlder,
hatchling,
sure,
}:

buildPythonPackage rec {
pname = "py-partiql-parser";
version = "0.5.4";
version = "0.5.6";
pyproject = true;

disabled = pythonOlder "3.7";
Expand All @@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "getmoto";
repo = "py-partiql-parser";
rev = "refs/tags/${version}";
hash = "sha256-BSqc3xibStb3J6Rua4dDp/eRD5/ns/dU1vGa4vL1Cyo=";
hash = "sha256-uEpgcY2bBaeFaK/0gWg1ef81FmKJy7m5G21aETW9QXU=";
};

build-system = [ hatchling ];
Expand Down