pythonPackages.moto: 1.3.13 -> 1.3.14

This commit is contained in:
Josef Kemetmüller 2020-01-03 17:48:15 +01:00 committed by Frederik Rietdijk
parent 29ffa0255f
commit 30121dffd4

View File

@ -22,30 +22,18 @@
, sure , sure
, werkzeug , werkzeug
, xmltodict , xmltodict
, isPy38 , parameterized
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "moto"; pname = "moto";
version = "1.3.13"; version = "1.3.14";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0rhbjvqi1khp80gfnl3x632kwlpq3k7m8f13nidznixdpa78vm4m"; sha256 = "0fm09074qic24h8rw9a0paklygyb7xd0ch4890y4v8lj2pnsxbkr";
}; };
# 3.8 is not yet support
# https://github.com/spulec/moto/pull/2519
disabled = isPy38;
# Backported fix from 1.3.14.dev for compatibility with botocore >= 1.9.198.
patches = [
(fetchpatch {
url = "https://github.com/spulec/moto/commit/e4a4e6183560489e98b95e815b439c7a1cf3566c.diff";
sha256 = "1fixr7riimnldiikv33z4jwjgcsccps0c6iif40x8wmpvgcfs0cb";
})
];
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "jsondiff==1.1.2" "jsondiff~=1.1" --replace "jsondiff==1.1.2" "jsondiff~=1.1"
@ -74,13 +62,21 @@ buildPythonPackage rec {
xmltodict xmltodict
] ++ lib.optionals isPy27 [ backports_tempfile ]; ] ++ lib.optionals isPy27 [ backports_tempfile ];
checkInputs = [ boto3 freezegun nose sure ]; checkInputs = [ boto3 freezegun nose sure parameterized ];
checkPhase = ''nosetests -v ./tests/ \ checkPhase = ''
-e test_invoke_function_from_sns \ nosetests -v ./tests/ \
-e test_invoke_requestresponse_function \ -e test_invoke_function_from_sns \
-e test_context_manager \ -e test_invoke_requestresponse_function \
-e test_decorator_start_and_stop''; -e test_context_manager \
-e test_decorator_start_and_stop \
-e test_invoke_event_function \
-e test_invoke_function_from_dynamodb \
-e test_invoke_function_from_sqs \
-e test_invoke_lambda_error \
-e test_invoke_async_function \
-e test_passthrough_requests
'';
meta = with lib; { meta = with lib; {
description = "Allows your tests to easily mock out AWS Services"; description = "Allows your tests to easily mock out AWS Services";