Commit 8676f4b4 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.aiobotocore: refactor

parent 8af33301
Loading
Loading
Loading
Loading
+18 −2
Original line number Diff line number Diff line
@@ -7,7 +7,10 @@
, fetchFromGitHub
, flask
, flask-cors
, awscli
, moto
, boto3
, setuptools
, pytest-asyncio
, pytestCheckHook
, pythonOlder
@@ -17,13 +20,13 @@
buildPythonPackage rec {
  pname = "aiobotocore";
  version = "2.9.1";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "aio-libs";
    repo = pname;
    repo = "aiobotocore";
    rev = "refs/tags/${version}";
    hash = "sha256-cODdmP/O24fNIugzl4AYdf3g4Gzwx3JseYKbZKgEPbc=";
  };
@@ -34,6 +37,10 @@ buildPythonPackage rec {
    sed -i "s/'botocore>=.*'/'botocore'/" setup.py
  '';

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    aiohttp
    aioitertools
@@ -41,6 +48,15 @@ buildPythonPackage rec {
    wrapt
  ];

  passthru.optional-dependencies = {
    awscli = [
      awscli
    ];
    boto3 = [
      boto3
    ];
  };

  nativeCheckInputs = [
    dill
    flask