python3Packages.aws-adfs: fix build

This commit is contained in:
Lein Matsumaru 2022-06-12 05:43:58 +00:00
parent ec4e23d4e9
commit 85213b6b41
No known key found for this signature in database
GPG key ID: AAA50652F0479205

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 = "*"' \