@@ -1,5 +1,6 @@
11{ lib, stdenv
22, fetchFromGitHub
3+, fetchpatch
34, buildPythonPackage
45, cryptography
56, click
@@ -26,10 +27,12 @@ buildPythonPackage rec {
2627 };
2728
2829 patches = [
29− # Fix removed function in construct library
30− # https://github.com/LedgerHQ/ledgerctl/issues/17
31− # https://github.com/construct/construct/commit/8915512f53552b1493afdbce5bbf8bb6f2aa4411
32− ./remove-iterateints.patch
30+ (fetchpatch {
31+ # Fix removed function in construct library
32+ url = "https://github.com/LedgerHQ/ledgerctl/commit/fd23d0e14721b93789071e80632e6bd9e47c1256.patch";
33+ sha256 = "sha256-YNlENguPQW5FNFT7mqED+ghF3TJiKao4H+56Eu+j+Eo=";
34+ excludes = [ "setup.py" ];
35+ })
3336 ];
3437
3538 buildInputs = lib.optionals stdenv.isDarwin [ AppKit ];