Skip to content
4 changes: 3 additions & 1 deletion pkgs/development/python-modules/aiobotocore/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ buildPythonPackage rec {
version = "2.8.0";
format = "setuptools";

disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "aio-libs";
Expand Down Expand Up @@ -82,6 +82,8 @@ buildPythonPackage rec {
"test_sso_credential_fetcher_can_fetch_credentials"
];

__darwinAllowLocalNetworking = true;

meta = with lib; {
description = "Python client for amazon services";
homepage = "https://github.com/aio-libs/aiobotocore";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ buildPythonPackage rec {
"test_unexpected_sar_error_stops_processing"
];

__darwinAllowLocalNetworking = true;

meta = with lib; {
description = "Python library to transform SAM templates into AWS CloudFormation templates";
homepage = "https://github.com/aws/serverless-application-model";
Expand Down
8 changes: 6 additions & 2 deletions pkgs/development/python-modules/boto3/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

buildPythonPackage rec {
pname = "boto3";
version = "1.28.57"; # N.B: if you change this, change botocore and awscli to a matching version
version = "1.33.6"; # N.B: if you change this, change botocore and awscli to a matching version
format = "pyproject";

src = fetchFromGitHub {
owner = "boto";
repo = pname;
rev = version;
hash = "sha256-+kuILCUK10tvpfTEAHZGvKKmpw6Pgn+v2kQkwCkPMKg=";
hash = "sha256-oOrUVBh1sbaOibU8A+bGZ4z7IEiE4gjHwZ+8889Hv60=";
};

nativeBuildInputs = [
Expand All @@ -43,6 +43,10 @@ buildPythonPackage rec {
"tests/integration"
];

passthru.optional-dependencies = {
crt = [ botocore.optional-dependencies.crt ];
};

meta = with lib; {
homepage = "https://github.com/boto/boto3";
changelog = "https://github.com/boto/boto3/blob/${version}/CHANGELOG.rst";
Expand Down
5 changes: 5 additions & 0 deletions pkgs/development/python-modules/botocore/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
, urllib3
, pytestCheckHook
, jsonschema
, awscrt
}:

buildPythonPackage rec {
Expand Down Expand Up @@ -41,6 +42,10 @@ buildPythonPackage rec {
"botocore"
];

passthru.optional-dependencies = {
crt = [ awscrt ];
};

meta = with lib; {
homepage = "https://github.com/boto/botocore";
changelog = "https://github.com/boto/botocore/blob/${version}/CHANGELOG.rst";
Expand Down
10 changes: 2 additions & 8 deletions pkgs/development/python-modules/cfn-lint/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ buildPythonPackage rec {

src = fetchFromGitHub {
owner = "aws-cloudformation";
repo = "cfn-python-lint";
repo = "cfn-lint";
rev = "refs/tags/v${version}";
hash = "sha256-0NHD8P+lKsrsEX/ypUS5dIwHOLudQcqkH8zG5RxANxE=";
};
Expand Down Expand Up @@ -57,12 +57,6 @@ buildPythonPackage rec {
'';

disabledTests = [
# These tests depend on the current date, for example because of issues like this.
# This makes it possible for them to succeed on hydra and then begin to fail without
# any code changes.
# https://github.com/aws-cloudformation/cfn-python-lint/issues/1705
# See also: https://github.com/NixOS/nixpkgs/issues/108076
"TestQuickStartTemplates"
# Requires git directory
"test_update_docs"
# Tests depend on network access (fails in getaddrinfo)
Expand All @@ -82,7 +76,7 @@ buildPythonPackage rec {

meta = with lib; {
description = "Checks cloudformation for practices and behaviour that could potentially be improved";
homepage = "https://github.com/aws-cloudformation/cfn-python-lint";
homepage = "https://github.com/aws-cloudformation/cfn-lint";
changelog = "https://github.com/aws-cloudformation/cfn-lint/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/moto/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ buildPythonPackage rec {

meta = with lib; {
description = "Allows your tests to easily mock out AWS Services";
homepage = "https://github.com/spulec/moto";
homepage = "https://github.com/getmoto/moto";
changelog = "https://github.com/getmoto/moto/blob/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = [ ];
Expand Down
8 changes: 6 additions & 2 deletions pkgs/development/python-modules/s3transfer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

buildPythonPackage rec {
pname = "s3transfer";
version = "0.7.0";
version = "0.8.2";
format = "setuptools";

disabled = pythonOlder "3.7";
Expand All @@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "boto";
repo = pname;
rev = version;
hash = "sha256-EvLqRvm9E1Taf+JvbhQbfJqIlbu2a+rB2MX0IO90x98=";
hash = "sha256-sdoPjkZHN5wVCK9V6V+fkGvQvEQo2ABy2lqefEKfg6o=";
};

propagatedBuildInputs = [ botocore ];
Expand All @@ -36,6 +36,10 @@ buildPythonPackage rec {

pythonImportsCheck = [ "s3transfer" ];

passthru.optional-dependencies = {
crt = [ botocore.optional-dependencies.crt ];
};

meta = with lib; {
description = "Library for managing Amazon S3 transfers";
homepage = "https://github.com/boto/s3transfer";
Expand Down
5 changes: 2 additions & 3 deletions pkgs/tools/admin/awscli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@

python3.pkgs.buildPythonApplication rec {
pname = "awscli";
version = "1.30.2"; # N.B: if you change this, change botocore and boto3 to a matching version too
version = "1.31.6"; # N.B: if you change this, change botocore and boto3 to a matching version too

src = fetchPypi {
inherit pname version;
hash = "sha256-XbYsPbYUIJPCS+nhcE3A5K7yxHcGUkulT5vHPT5T9kM=";
hash = "sha256-PINiNkP2vopPgc9bH0x7mifeUt7gdXi3/i2Ye96RANg=";
};


propagatedBuildInputs = with python3.pkgs; [
botocore
bcdoc
Expand Down