Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 29ffa0255f91
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 30121dffd40d
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jan 6, 2020

  1. pythonPackages.moto: 1.3.13 -> 1.3.14

    knedlsepp authored and FRidh committed Jan 6, 2020
    Copy the full SHA
    30121df View commit details
Showing with 17 additions and 21 deletions.
  1. +17 −21 pkgs/development/python-modules/moto/default.nix
38 changes: 17 additions & 21 deletions pkgs/development/python-modules/moto/default.nix
Original file line number Diff line number Diff line change
@@ -22,30 +22,18 @@
, sure
, werkzeug
, xmltodict
, isPy38
, parameterized
}:

buildPythonPackage rec {
pname = "moto";
version = "1.3.13";
version = "1.3.14";

src = fetchPypi {
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 = ''
substituteInPlace setup.py \
--replace "jsondiff==1.1.2" "jsondiff~=1.1"
@@ -74,13 +62,21 @@ buildPythonPackage rec {
xmltodict
] ++ lib.optionals isPy27 [ backports_tempfile ];

checkInputs = [ boto3 freezegun nose sure ];
checkInputs = [ boto3 freezegun nose sure parameterized ];

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'';
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 \
-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; {
description = "Allows your tests to easily mock out AWS Services";