From 16b5c395b3ec41d1c2f344caefa763612d00fddc Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 3 Dec 2022 01:32:49 +0000 Subject: [PATCH 1/3] python310Packages.aiobotocore: 2.4.0 -> 2.4.1 --- pkgs/development/python-modules/aiobotocore/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiobotocore/default.nix b/pkgs/development/python-modules/aiobotocore/default.nix index 6bc62a3854d3..00b3e86c9107 100644 --- a/pkgs/development/python-modules/aiobotocore/default.nix +++ b/pkgs/development/python-modules/aiobotocore/default.nix @@ -10,12 +10,12 @@ buildPythonPackage rec { pname = "aiobotocore"; - version = "2.4.0"; + version = "2.4.1"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-+f4GmMxJeGG9tUzRYWHIBAMfdYralIDDVUDyDAwHg4U="; + sha256 = "sha256-XI7nnR8UJz4/jzr1yJPbiJ7xYyJ7F47Ky1rqRUfTuac="; }; # relax version constraints: aiobotocore works with newer botocore versions From b27e29578ac3cfbd97b8baa635087fd0d74636b9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 3 Dec 2022 12:33:55 +0100 Subject: [PATCH 2/3] python310Packages.aiobotocore: add changelog to meta --- .../python-modules/aiobotocore/default.nix | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/aiobotocore/default.nix b/pkgs/development/python-modules/aiobotocore/default.nix index 00b3e86c9107..391267d480e3 100644 --- a/pkgs/development/python-modules/aiobotocore/default.nix +++ b/pkgs/development/python-modules/aiobotocore/default.nix @@ -11,29 +11,40 @@ buildPythonPackage rec { pname = "aiobotocore"; version = "2.4.1"; + format = "setuptools"; + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-XI7nnR8UJz4/jzr1yJPbiJ7xYyJ7F47Ky1rqRUfTuac="; + hash = "sha256-XI7nnR8UJz4/jzr1yJPbiJ7xYyJ7F47Ky1rqRUfTuac="; }; - # relax version constraints: aiobotocore works with newer botocore versions + # Relax version constraints: aiobotocore works with newer botocore versions # the pinning used to match some `extras_require` we're not using. postPatch = '' sed -i "s/'botocore>=.*'/'botocore'/" setup.py ''; - propagatedBuildInputs = [ wrapt aiohttp aioitertools botocore ]; + propagatedBuildInputs = [ + wrapt + aiohttp + aioitertools + botocore + ]; - # tests not distributed on pypi + # Tests not distributed on PyPI doCheck = false; - pythonImportsCheck = [ "aiobotocore" ]; + + pythonImportsCheck = [ + "aiobotocore" + ]; meta = with lib; { description = "Python client for amazon services"; - license = licenses.asl20; homepage = "https://github.com/aio-libs/aiobotocore"; + changelog = "https://github.com/aio-libs/aiobotocore/releases/tag/${version}"; + license = licenses.asl20; maintainers = with maintainers; [ teh ]; }; } From 2945028f11e3d7ce7548c5dbf7d55621fc4f0057 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 3 Dec 2022 12:51:51 +0100 Subject: [PATCH 3/3] python310Packages.aiobotocore: enable tests --- .../python-modules/aiobotocore/default.nix | 58 +++++++++++++++---- 1 file changed, 48 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/aiobotocore/default.nix b/pkgs/development/python-modules/aiobotocore/default.nix index 391267d480e3..4762372e8c80 100644 --- a/pkgs/development/python-modules/aiobotocore/default.nix +++ b/pkgs/development/python-modules/aiobotocore/default.nix @@ -1,11 +1,15 @@ { lib +, aiohttp +, aioitertools +, botocore , buildPythonPackage -, fetchPypi +, dill +, fetchFromGitHub +, moto +, pytest-asyncio +, pytestCheckHook , pythonOlder , wrapt -, aioitertools -, aiohttp -, botocore }: buildPythonPackage rec { @@ -15,9 +19,11 @@ buildPythonPackage rec { disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - hash = "sha256-XI7nnR8UJz4/jzr1yJPbiJ7xYyJ7F47Ky1rqRUfTuac="; + src = fetchFromGitHub { + owner = "aio-libs"; + repo = pname; + rev = "refs/tags/${version}"; + hash = "sha256-jJ1Yc5vs33vXdSjDFUXhdquz1s7NxzJELQsM3hthhzg="; }; # Relax version constraints: aiobotocore works with newer botocore versions @@ -27,19 +33,51 @@ buildPythonPackage rec { ''; propagatedBuildInputs = [ - wrapt aiohttp aioitertools botocore + wrapt ]; - # Tests not distributed on PyPI - doCheck = false; + checkInputs = [ + dill + moto + pytest-asyncio + pytestCheckHook + ]; pythonImportsCheck = [ "aiobotocore" ]; + disabledTestPaths = [ + # Tests require network access + "tests/boto_tests/test_signers.py" + "tests/python3.8/" + "tests/test_basic_s3.py" + "tests/test_batch.py" + "tests/test_dynamodb.py" + "tests/test_ec2.py" + "tests/test_eventstreams.py" + "tests/test_lambda.py" + "tests/test_monitor.py" + "tests/test_mturk.py" + "tests/test_patches.py" + "tests/test_sns.py" + "tests/test_sqs.py" + "tests/test_version.py" + "tests/test_waiter.py" + ]; + + disabledTests = [ + "test_get_credential" + "test_load_sso_credentials_without_cache" + "test_load_sso_credentials" + "test_required_config_not_set" + "test_sso_cred_fetcher_raises_helpful_message_on_unauthorized_exception" + "test_sso_credential_fetcher_can_fetch_credentials" + ]; + meta = with lib; { description = "Python client for amazon services"; homepage = "https://github.com/aio-libs/aiobotocore";