pythonPackages.moto: 1.3.8 -> 1.3.10
This commit is contained in:
parent
03d3ed3eb0
commit
d12733fee5
|
@ -1,54 +1,78 @@
|
||||||
{ buildPythonPackage, fetchPypi, jinja2, werkzeug, flask, cfn-lint
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
||||||
, requests, pytz, backports_tempfile, cookies, jsondiff, botocore, aws-xray-sdk, docker, responses
|
, aws-xray-sdk
|
||||||
, six, boto, httpretty, xmltodict, nose, sure, boto3, freezegun, dateutil, mock, pyaml, python-jose }:
|
, backports_tempfile
|
||||||
|
, boto
|
||||||
|
, boto3
|
||||||
|
, botocore
|
||||||
|
, cfn-lint
|
||||||
|
, docker
|
||||||
|
, flask
|
||||||
|
, freezegun
|
||||||
|
, jinja2
|
||||||
|
, jsondiff
|
||||||
|
, mock
|
||||||
|
, nose
|
||||||
|
, pyaml
|
||||||
|
, python-jose
|
||||||
|
, pytz
|
||||||
|
, requests
|
||||||
|
, responses
|
||||||
|
, six
|
||||||
|
, sshpubkeys
|
||||||
|
, sure
|
||||||
|
, werkzeug
|
||||||
|
, xmltodict
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "moto";
|
pname = "moto";
|
||||||
version = "1.3.8";
|
version = "1.3.10";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "9cb02134148fbe3ed81f11d6ab9bd71bbd6bc2db7e59a45de77fb1d0fedb744e";
|
sha256 = "0vlq015irqqwdknk1an7qqkg1zjk18c7jd89r7zbxxfwy3bgzwwj";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# regarding aws-xray-sdk: https://github.com/spulec/moto/commit/31eac49e1555c5345021a252cb0c95043197ea16
|
|
||||||
# regarding python-jose: https://github.com/spulec/moto/pull/1927
|
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "aws-xray-sdk<0.96," "aws-xray-sdk" \
|
--replace "jsondiff==1.1.2" "jsondiff~=1.1"
|
||||||
--replace "jsondiff==1.1.1" "jsondiff>=1.1.1" \
|
sed -i '/datetime/d' setup.py # should be taken care of by std library
|
||||||
--replace "python-jose<3.0.0" "python-jose<4.0.0"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
aws-xray-sdk
|
aws-xray-sdk
|
||||||
boto
|
boto
|
||||||
boto3
|
boto3
|
||||||
|
botocore
|
||||||
cfn-lint
|
cfn-lint
|
||||||
dateutil
|
docker
|
||||||
flask
|
flask # required for server
|
||||||
httpretty
|
|
||||||
jinja2
|
jinja2
|
||||||
pytz
|
jsondiff
|
||||||
werkzeug
|
|
||||||
requests
|
|
||||||
six
|
|
||||||
xmltodict
|
|
||||||
mock
|
mock
|
||||||
pyaml
|
pyaml
|
||||||
backports_tempfile
|
|
||||||
cookies
|
|
||||||
jsondiff
|
|
||||||
botocore
|
|
||||||
docker
|
|
||||||
responses
|
|
||||||
python-jose
|
python-jose
|
||||||
];
|
pytz
|
||||||
|
six
|
||||||
|
requests
|
||||||
|
responses
|
||||||
|
sshpubkeys
|
||||||
|
werkzeug
|
||||||
|
xmltodict
|
||||||
|
] ++ lib.optionals isPy27 [ backports_tempfile ];
|
||||||
|
|
||||||
checkInputs = [ boto3 nose sure freezegun ];
|
checkInputs = [ boto3 freezegun nose sure ];
|
||||||
|
|
||||||
checkPhase = "nosetests";
|
checkPhase = ''nosetests -v ./tests/ \
|
||||||
|
-e test_invoke_function_from_sns \
|
||||||
|
-e test_invoke_requestresponse_function \
|
||||||
|
-e test_context_manager \
|
||||||
|
-e test_decorator_start_and_stop'';
|
||||||
|
|
||||||
# TODO: make this true; I think lots of the tests want network access but we can probably run the others
|
meta = with lib; {
|
||||||
doCheck = false;
|
description = "This project extends the Application Insights API surface to support Python";
|
||||||
|
homepage = https://github.com/spulec/moto;
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = [ ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue