Merge pull request #247353 from tjni/awscli2

awscli2: unpin flit-core dependency
This commit is contained in:
Mario Rodas 2023-08-05 13:54:48 -05:00 committed by GitHub
commit 04f88809c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@
, groff
, less
, fetchFromGitHub
, fetchpatch
, nix-update-script
, testers
, awscli2
@ -33,9 +34,19 @@ with py.pkgs; buildPythonApplication rec {
hash = "sha256-gtzRHNEReCKzGDdiwS5kngcJYp5oAHmhnOPl/uTyxvU=";
};
patches = [
# https://github.com/aws/aws-cli/pull/7912
(fetchpatch {
name = "update-flit-core.patch";
url = "https://github.com/aws/aws-cli/commit/83412a4b2ec750bada640a34a87bfe07ce41fb50.patch";
hash = "sha256-uhO6aOSptsARYWuXXEFhx+6rCW5/uGn2KQ15BnhzH68=";
})
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'cryptography>=3.3.2,<40.0.2' 'cryptography>=3.3.2'
--replace 'cryptography>=3.3.2,<40.0.2' 'cryptography>=3.3.2' \
--replace 'flit_core>=3.7.1,<3.8.1' 'flit_core>=3.7.1'
'';
nativeBuildInputs = [