Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
8.5 kB · 407 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408{ lib, antlr4-python3-runtime, aws-xray-sdk, boto3, botocore, buildPythonPackage, cfn-lint, crc32c, cryptography, docker, fetchFromGitHub, fetchpatch, flask-cors, flask, freezegun, graphql-core, jinja2, joserfc, jsonpath-ng, jsonschema, multipart, openapi-spec-validator, py-partiql-parser, pyparsing, pytest-order, pytest-xdist, pytestCheckHook, python-dateutil, pythonOlder, pyyaml, requests, responses, setuptools, werkzeug, xmltodict,}:
buildPythonPackage rec { pname = "moto"; version = "5.1.4"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "getmoto"; repo = "moto"; tag = version; hash = "sha256-bDRd1FTBpv6t2j8cBzcYiK4B0F4sLcoW9K0Wnd0oo+4="; };
# Fix tests with botocore 1.38.32 # FIXME: remove in next update patches = [ (fetchpatch { url = "https://github.com/getmoto/moto/commit/8dcaaca0eefdf9ac957650c1562317b6d07fadf9.diff"; hash = "sha256-5zaerJR1rsMZQLn8cXjS8RYiKlSQ6azp7dk7JzLp+7I="; }) ];
build-system = [ setuptools ];
dependencies = [ boto3 botocore cryptography requests xmltodict werkzeug python-dateutil responses jinja2 ];
optional-dependencies = { all = [ antlr4-python3-runtime joserfc jsonpath-ng docker graphql-core pyyaml cfn-lint jsonschema openapi-spec-validator pyparsing py-partiql-parser aws-xray-sdk setuptools multipart ]; proxy = [ antlr4-python3-runtime joserfc jsonpath-ng docker graphql-core pyyaml cfn-lint openapi-spec-validator pyparsing py-partiql-parser aws-xray-sdk setuptools multipart ]; server = [ antlr4-python3-runtime joserfc jsonpath-ng docker graphql-core pyyaml cfn-lint openapi-spec-validator pyparsing py-partiql-parser aws-xray-sdk setuptools flask flask-cors ]; acm = [ ]; acmpca = [ ]; amp = [ ]; apigateway = [ pyyaml joserfc openapi-spec-validator ]; apigatewayv2 = [ pyyaml openapi-spec-validator ]; applicationautoscaling = [ ]; appsync = [ graphql-core ]; athena = [ ]; autoscaling = [ ]; awslambda = [ docker ]; awslambda_simple = [ ]; backup = [ ]; batch = [ docker ]; batch_simple = [ ]; budgets = [ ]; ce = [ ]; cloudformation = [ joserfc docker graphql-core pyyaml cfn-lint openapi-spec-validator pyparsing py-partiql-parser aws-xray-sdk setuptools ]; cloudfront = [ ]; cloudtrail = [ ]; cloudwatch = [ ]; codebuild = [ ]; codecommit = [ ]; codepipeline = [ ]; cognitoidentity = [ ]; cognitoidp = [ joserfc ]; comprehend = [ ]; config = [ ]; databrew = [ ]; datapipeline = [ ]; datasync = [ ]; dax = [ ]; dms = [ ]; ds = [ ]; dynamodb = [ docker py-partiql-parser ]; dynamodbstreams = [ docker py-partiql-parser ]; ebs = [ ]; ec2 = [ ]; ec2instanceconnect = [ ]; ecr = [ ]; ecs = [ ]; efs = [ ]; eks = [ ]; elasticache = [ ]; elasticbeanstalk = [ ]; elastictranscoder = [ ]; elb = [ ]; elbv2 = [ ]; emr = [ ]; emrcontainers = [ ]; emrserverless = [ ]; es = [ ]; events = [ jsonpath-ng ]; firehose = [ ]; forecast = [ ]; glacier = [ ]; glue = [ pyparsing ]; greengrass = [ ]; guardduty = [ ]; iam = [ ]; inspector2 = [ ]; iot = [ ]; iotdata = [ ]; ivs = [ ]; kinesis = [ ]; kinesisvideo = [ ]; kinesisvideoarchivedmedia = [ ]; kms = [ ]; logs = [ ]; managedblockchain = [ ]; mediaconnect = [ ]; medialive = [ ]; mediapackage = [ ]; mediastore = [ ]; mediastoredata = [ ]; meteringmarketplace = [ ]; mq = [ ]; opsworks = [ ]; organizations = [ ]; panorama = [ ]; personalize = [ ]; pinpoint = [ ]; polly = [ ]; quicksight = [ jsonschema ]; ram = [ ]; rds = [ ]; redshift = [ ]; redshiftdata = [ ]; rekognition = [ ]; resourcegroups = [ ]; resourcegroupstaggingapi = [ joserfc docker graphql-core pyyaml cfn-lint openapi-spec-validator pyparsing py-partiql-parser ]; route53 = [ ]; route53resolver = [ ]; s3 = [ pyyaml py-partiql-parser ]; s3crc32c = [ pyyaml py-partiql-parser crc32c ]; s3control = [ ]; sagemaker = [ ]; sdb = [ ]; scheduler = [ ]; secretsmanager = [ ]; servicediscovery = [ ]; servicequotas = [ ]; ses = [ ]; signer = [ ]; sns = [ ]; sqs = [ ]; ssm = [ pyyaml ]; ssoadmin = [ ]; stepfunctions = [ antlr4-python3-runtime jsonpath-ng ]; sts = [ ]; support = [ ]; swf = [ ]; textract = [ ]; timestreamwrite = [ ]; transcribe = [ ]; wafv2 = [ ]; xray = [ aws-xray-sdk setuptools ]; };
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [ freezegun pytest-order pytest-xdist pytestCheckHook ] ++ optional-dependencies.server;
# Some tests depend on AWS credentials environment variables to be set. env.AWS_ACCESS_KEY_ID = "ak"; env.AWS_SECRET_ACCESS_KEY = "sk";
pytestFlags = [ # Matches upstream configuration, presumably due to expensive setup/teardown. "--dist=loadscope" ];
disabledTestMarks = [ "network" "requires_docker" ];
disabledTests = [ # Fails at local name resolution "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 "test_put_record_http_destination" "test_put_record_batch_http_destination"
# Fails at resolving s3.amazonaws.com "test_passthrough_calls_for_wildcard_urls" "test_passthrough_calls_for_specific_url" "test_passthrough_calls_for_entire_service"
# Download recordings returns faulty JSON "test_ec2_instance_creation_recording_on" "test_ec2_instance_creation__recording_off"
# Connection Reset by Peer, when connecting to localhost:5678 "test_replay"
# Flaky under parallel execution "test_cloudformation_server_get" "test_should_find_bucket"
# AssertionError: assert ResourceWarning not in [<class 'ResourceWarning'>, <class 'ResourceWarning'>] "test_delete_object_with_version"
# KeyError because of ap-southeast-5-apse5-az "test_zoneId_in_availability_zones"
# Parameter validation fails "test_conditional_write"
# Requires newer botocore version "test_dynamodb_with_account_id_routing"
# Assumes too much about threading.Timer() behavior (that it honors the # timeout precisely and that the thread handler will complete in just 0.1s # from the requested timeout) "test_start_and_fire_timer_decision" ];
disabledTestPaths = [ # Flaky under parallel execution, Connection Reset errors to localhost. "tests/test_moto_api/recorder/test_recorder.py"
# Flaky under parallel execution "tests/test_resourcegroupstaggingapi/*.py"
# Tries to access the network "tests/test_batch/test_batch_jobs.py"
# Threading tests regularly blocks test execution "tests/test_utilities/test_threaded_server.py" "tests/test_s3/test_s3_bucket_policy.py"
# https://github.com/getmoto/moto/issues/7786 "tests/test_dynamodb/test_dynamodb_import_table.py"
# Infinite recursion with pycognito "tests/test_cognitoidp/test_cognitoidp.py"
# botocore.exceptions.ParamValidationError: Parameter validation failed: Unknown parameter in input: "EnableWorkDocs", must be one of: [...] "tests/test_workspaces/test_workspaces.py" ];
meta = { description = "Allows 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 = lib.licenses.asl20; maintainers = with lib.maintainers; [ onny ]; };}