diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-12-03 12:51:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-03 12:51:51 +0100 |
commit | 2945028f11e3d7ce7548c5dbf7d55621fc4f0057 (patch) | |
tree | 0ea72f79f3c09b5c24c15e21cc2cbce5151d7549 | |
parent | b27e29578ac3cfbd97b8baa635087fd0d74636b9 (diff) | |
download | nixpkgs-2945028f11e3d7ce7548c5dbf7d55621fc4f0057.tar nixpkgs-2945028f11e3d7ce7548c5dbf7d55621fc4f0057.tar.gz nixpkgs-2945028f11e3d7ce7548c5dbf7d55621fc4f0057.tar.bz2 nixpkgs-2945028f11e3d7ce7548c5dbf7d55621fc4f0057.tar.lz nixpkgs-2945028f11e3d7ce7548c5dbf7d55621fc4f0057.tar.xz nixpkgs-2945028f11e3d7ce7548c5dbf7d55621fc4f0057.tar.zst nixpkgs-2945028f11e3d7ce7548c5dbf7d55621fc4f0057.zip |
python310Packages.aiobotocore: enable tests
-rw-r--r-- | pkgs/development/python-modules/aiobotocore/default.nix | 58 |
1 files changed, 48 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/aiobotocore/default.nix b/pkgs/development/python-modules/aiobotocore/default.nix index 391267d480e..4762372e8c8 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"; |