awscli2: make version widening more robust

This commit is contained in:
Sandro Jäckel 2022-12-16 23:03:09 +01:00
parent 5bfe30aafa
commit 858daac74d
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -73,10 +73,10 @@ with py.pkgs; buildPythonApplication rec {
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace "colorama>=0.2.5,<0.4.4" "colorama" \
--replace "distro>=1.5.0,<1.6.0" "distro" \
--replace "cryptography>=3.3.2,<=38.0.1" "cryptography>=3.3.2,<=38.0.3"
sed -i pyproject.toml \
-e 's/colorama.*/colorama",/' \
-e 's/cryptography.*/cryptography",/' \
-e 's/distro.*/distro",/'
'';
postInstall = ''