about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/aioboto3/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/aioboto3/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/aioboto3/default.nix53
1 files changed, 31 insertions, 22 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/aioboto3/default.nix b/nixpkgs/pkgs/development/python-modules/aioboto3/default.nix
index 6494bf65a6e7..231e4bbbe8b2 100644
--- a/nixpkgs/pkgs/development/python-modules/aioboto3/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/aioboto3/default.nix
@@ -1,38 +1,35 @@
 { lib
+, aiobotocore
+, aiofiles
+, boto3
 , buildPythonPackage
+, chalice
+, cryptography
+, dill
 , fetchFromGitHub
+, moto
 , poetry-core
 , poetry-dynamic-versioning
-, aiobotocore
-, chalice
-, cryptography
-, boto3
-, pytestCheckHook
 , pytest-asyncio
+, pytestCheckHook
+, pythonOlder
 , requests
-, aiofiles
-, moto
-, dill
 }:
 
 buildPythonPackage rec {
   pname = "aioboto3";
-  version = "11.3.0";
+  version = "12.1.0";
   pyproject = true;
 
+  disabled = pythonOlder "3.8";
+
   src = fetchFromGitHub {
     owner = "terrycain";
     repo = "aioboto3";
-    rev = "v${version}";
-    hash = "sha256-jU9sKhbUdVeOvOXQnXR/S/4sBwTNcQCc9ZduO+HDXho=";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-CVRDQhymQRi5dyVBLJYTnF3RI4jPBB966dVMT4lOd8g=";
   };
 
-  postPatch = ''
-    substituteInPlace pyproject.toml \
-    --replace poetry.masonry.api poetry.core.masonry.api \
-    --replace "poetry>=0.12" "poetry-core>=0.12"
-  '';
-
   nativeBuildInputs = [
     poetry-core
     poetry-dynamic-versioning
@@ -53,15 +50,27 @@ buildPythonPackage rec {
   };
 
   nativeCheckInputs = [
-    pytestCheckHook
-    pytest-asyncio
-    requests
     aiofiles
-    moto
     dill
+    moto
+    pytest-asyncio
+    pytestCheckHook
+    requests
   ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
 
-  pythonImportsCheck = [ "aioboto3" ];
+  pythonImportsCheck = [
+    "aioboto3"
+  ];
+
+  disabledTests = [
+    # Our moto package is not ready to support more tests
+    "encrypt_decrypt_aes_cbc"
+    "test_chalice_async"
+    "test_dynamo"
+    "test_flush_doesnt_reset_item_buffer"
+    "test_kms"
+    "test_s3"
+  ];
 
   meta = with lib; {
     description = "Wrapper to use boto3 resources with the aiobotocore async backend";