Merge pull request #177369 from applePrincess/fix-aws-adfs

python3Packages.aws-adfs: fix build
This commit is contained in:
Benjamin Hipple 2022-06-13 23:36:39 -04:00 committed by GitHub
commit d8916eaeaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@
, click
, configparser
, fetchFromGitHub
, fetchpatch
, fido2
, lxml
, poetry-core
@ -46,6 +47,14 @@ buildPythonPackage rec {
requests-kerberos
];
patches = [
# Apply new fido2 api (See: venth/aws-adfs#243)
(fetchpatch {
url = "https://github.com/venth/aws-adfs/commit/09836d89256f3537270d760d8aa30ab9284725a8.diff";
hash = "sha256-pAAJvOa43BXtyWvV8hsLe2xqd5oI+vzndckRTRol61s=";
})
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'boto3 = "^1.20.50"' 'boto3 = "*"' \