From 47eb5bf3f6df74fe7faa68f81a5f04ec0a23830f Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Fri, 21 Jun 2024 17:24:51 +0200 Subject: [PATCH 1/2] awscli2: 2.16.4 -> 2.17.0 https://github.com/aws/aws-cli/compare/2.16.4...2.17.0 --- pkgs/tools/admin/awscli2/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/admin/awscli2/default.nix b/pkgs/tools/admin/awscli2/default.nix index 8708325cc465..c3b741f0adca 100644 --- a/pkgs/tools/admin/awscli2/default.nix +++ b/pkgs/tools/admin/awscli2/default.nix @@ -59,19 +59,19 @@ let in with py.pkgs; buildPythonApplication rec { pname = "awscli2"; - version = "2.16.4"; # N.B: if you change this, check if overrides are still up-to-date + version = "2.17.0"; # N.B: if you change this, check if overrides are still up-to-date pyproject = true; src = fetchFromGitHub { owner = "aws"; repo = "aws-cli"; rev = "refs/tags/${version}"; - hash = "sha256-l+AbacIs/1cJ78BACb3f5KuN9jM55WBT1SHD/lcAbcA="; + hash = "sha256-7XBdS33aoU3utAkKR0WSD2PXpx+2awd4hnFZhzRVdh8="; }; postPatch = '' substituteInPlace pyproject.toml \ - --replace-fail 'awscrt>=0.19.18,<=0.19.19' 'awscrt>=0.19.18' \ + --replace-fail 'awscrt>=0.19.18,<=0.20.11' 'awscrt>=0.19.18' \ --replace-fail 'cryptography>=3.3.2,<40.0.2' 'cryptography>=3.3.2' \ --replace-fail 'distro>=1.5.0,<1.9.0' 'distro>=1.5.0' \ --replace-fail 'docutils>=0.10,<0.20' 'docutils>=0.10' \ From 75be03a801794de4c2b8ade418b94df4e17cf121 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Fri, 21 Jun 2024 17:44:44 +0200 Subject: [PATCH 2/2] awscli2: remove `with py.pkgs` --- pkgs/tools/admin/awscli2/default.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/admin/awscli2/default.nix b/pkgs/tools/admin/awscli2/default.nix index c3b741f0adca..676fabd30d89 100644 --- a/pkgs/tools/admin/awscli2/default.nix +++ b/pkgs/tools/admin/awscli2/default.nix @@ -57,7 +57,7 @@ let }; in -with py.pkgs; buildPythonApplication rec { +py.pkgs.buildPythonApplication rec { pname = "awscli2"; version = "2.17.0"; # N.B: if you change this, check if overrides are still up-to-date pyproject = true; @@ -86,12 +86,15 @@ with py.pkgs; buildPythonApplication rec { sed -i '/pip>=/d' requirements/bootstrap.txt ''; - build-system = [ + nativeBuildInputs = [ installShellFiles + ]; + + build-system = with py.pkgs; [ flit-core ]; - dependencies = [ + dependencies = with py.pkgs; [ awscrt bcdoc botocore @@ -99,9 +102,7 @@ with py.pkgs; buildPythonApplication rec { cryptography distro docutils - groff jmespath - less prompt-toolkit python-dateutil pyyaml @@ -109,7 +110,12 @@ with py.pkgs; buildPythonApplication rec { urllib3 ]; - nativeCheckInputs = [ + propagatedBuildInputs = [ + groff + less + ]; + + nativeCheckInputs = with py.pkgs; [ jsonschema mock pytestCheckHook