2019-05-01 09:59:56 +01:00
|
|
|
{ buildPythonPackage, fetchPypi, jinja2, werkzeug, flask, cfn-lint
|
2018-05-27 23:16:27 +01:00
|
|
|
, requests, pytz, backports_tempfile, cookies, jsondiff, botocore, aws-xray-sdk, docker, responses
|
2018-08-30 18:09:45 +01:00
|
|
|
, six, boto, httpretty, xmltodict, nose, sure, boto3, freezegun, dateutil, mock, pyaml, python-jose }:
|
2017-09-15 14:15:54 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "moto";
|
2019-04-24 17:42:49 +01:00
|
|
|
version = "1.3.8";
|
2017-12-30 11:24:45 +00:00
|
|
|
|
2017-09-15 14:15:54 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-24 17:42:49 +01:00
|
|
|
sha256 = "9cb02134148fbe3ed81f11d6ab9bd71bbd6bc2db7e59a45de77fb1d0fedb744e";
|
2017-09-15 14:15:54 +01:00
|
|
|
};
|
|
|
|
|
2018-04-07 11:25:04 +01:00
|
|
|
postPatch = ''
|
|
|
|
# regarding aws-xray-sdk: https://github.com/spulec/moto/commit/31eac49e1555c5345021a252cb0c95043197ea16
|
2018-12-03 15:10:05 +00:00
|
|
|
# regarding python-jose: https://github.com/spulec/moto/pull/1927
|
2018-04-07 11:25:04 +01:00
|
|
|
substituteInPlace setup.py \
|
2018-06-12 19:30:08 +01:00
|
|
|
--replace "aws-xray-sdk<0.96," "aws-xray-sdk" \
|
2018-12-03 15:10:05 +00:00
|
|
|
--replace "jsondiff==1.1.1" "jsondiff>=1.1.1" \
|
|
|
|
--replace "python-jose<3.0.0" "python-jose<4.0.0"
|
2018-04-07 11:25:04 +01:00
|
|
|
'';
|
|
|
|
|
2017-09-15 14:15:54 +01:00
|
|
|
propagatedBuildInputs = [
|
2017-12-30 11:24:45 +00:00
|
|
|
aws-xray-sdk
|
2017-09-15 14:15:54 +01:00
|
|
|
boto
|
2017-12-30 11:24:45 +00:00
|
|
|
boto3
|
2019-05-01 09:59:56 +01:00
|
|
|
cfn-lint
|
2017-09-15 14:15:54 +01:00
|
|
|
dateutil
|
|
|
|
flask
|
|
|
|
httpretty
|
|
|
|
jinja2
|
|
|
|
pytz
|
|
|
|
werkzeug
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
xmltodict
|
2017-12-30 11:24:45 +00:00
|
|
|
mock
|
|
|
|
pyaml
|
|
|
|
backports_tempfile
|
|
|
|
cookies
|
|
|
|
jsondiff
|
|
|
|
botocore
|
|
|
|
docker
|
2018-05-27 23:16:27 +01:00
|
|
|
responses
|
2018-08-30 18:09:45 +01:00
|
|
|
python-jose
|
2017-09-15 14:15:54 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ boto3 nose sure freezegun ];
|
|
|
|
|
|
|
|
checkPhase = "nosetests";
|
|
|
|
|
|
|
|
# TODO: make this true; I think lots of the tests want network access but we can probably run the others
|
|
|
|
doCheck = false;
|
|
|
|
}
|