{% set version = "2.2.0" %}

package:
  name: moto
  version: {{ version }}

source:
  - url: https://pypi.io/packages/source/m/moto/moto-{{ version }}.tar.gz
    sha256: 54824ad7fb5040d60558f7f34e0cb32e2de1d97612c03a1f9accfe3d5b94d2a6
  - url: https://github.com/spulec/moto/archive/{{ version }}.tar.gz
    sha256: 2b4f5f40143a26db719e6f5f53bdded7edb4eab60f75b8cfd0b8e6c43be1c8fe
    folder: github

build:
  number: 0
  noarch: python
  entry_points:
    - moto_server = moto.server:main
  script: {{ PYTHON }} -m pip install . --no-deps -vv

requirements:
  host:
    - python >=3.3
    - pip
  run:
    - python >=3.3
    - jinja2 >=2.10.1
    # we need to bound this since 198 changed some of the api
    - boto3 >=1.9.201
    - botocore >=1.12.201
    - cryptography >=3.3.1
    - requests >=2.5
    - xmltodict
    - six >1.9
    - werkzeug
    - pyyaml >=5.1
    - pytz
    - python-dateutil >=2.1,<3.0.0
    - python-jose <4.0.0
    - mock
    - docker-py >=2.5.1
    - responses >=0.9.0
    - cfn-lint >=0.4.0
    - flask
    - lxml
    - flask_cors
    - inflection
    - prompt_toolkit
    - click
    - jsondiff >=1.1.2
    - aws-xray-sdk !=0.96,>=0.93
    - sshpubkeys >=3.1.0,<4.0
    - idna >=2.5,<3

test:
  imports:
    - moto
    - moto.acm
    - moto.apigateway
    - moto.autoscaling
    - moto.awslambda
    - moto.batch
    - moto.cloudformation
    - moto.cloudwatch
    - moto.cognitoidentity
    - moto.cognitoidp
    - moto.config
    - moto.core
    - moto.datapipeline
    - moto.dynamodb
    - moto.dynamodb2
    - moto.dynamodbstreams
    - moto.ec2
    - moto.ec2.responses
    - moto.ecr
    - moto.ecs
    - moto.elb
    - moto.elbv2
    - moto.emr
    - moto.events
    - moto.glacier
    - moto.glue
    - moto.iam
    - moto.instance_metadata
    - moto.iot
    - moto.iotdata
    - moto.kinesis
    - moto.kms
    - moto.logs
    - moto.opsworks
    - moto.organizations
    - moto.packages
    - moto.packages.httpretty
    - moto.polly
    - moto.rds
    - moto.rds2
    - moto.redshift
    - moto.resourcegroupstaggingapi
    - moto.route53
    - moto.s3
    - moto.s3bucket_path
    - moto.secretsmanager
    - moto.ses
    - moto.sns
    - moto.sqs
    - moto.ssm
    - moto.sts
    - moto.swf
    - moto.swf.models
    - moto.xray
  requires:
    - nose
    - nose-exclude
    - pytest
    - pip
    - freezegun
    - parameterized
    # needed for passing pip check
    - rsa
    - pyasn1
  source_files:
    - github/tests
  commands:
    - pip check
    - moto_server --help
    - pip install sure
    - cd github
#     - >
#       pytest tests --verbose
#         -k "not test_lambda"
#         -k "not test_batch"
#         -k "not test_lambda_cloudformation"
#         -k "not test_cognitoidp.test_token_legitimacy"
#         -k "not test_create_stack_lambda_and_dynamodb"
#         -k "not tests.test_cloudformation.test_validate"
#         -k "not test_cloudformation_stack_integration.test_lambda_function"

about:
  home: http://getmoto.org
  license: Apache-2.0
  summary: A library that allows your python tests to easily mock out the boto library.
  license_family: APACHE
  license_file: LICENSE
  doc_url: http://docs.getmoto.org
  dev_url: https://github.com/spulec/moto

extra:
  recipe-maintainers:
    - johanneskoester
    - mariusvniekerk
    - hajapy
