Merge pull request #249140 from natsukium/dm-haiku/fix

python310Packages.dm-haiku: fix build

authored by

OTABI Tomoya and committed by
GitHub
199b8970 8c5b4290

+16
+16
pkgs/development/python-modules/dm-haiku/default.nix
··· 1 1 { buildPythonPackage 2 2 , fetchFromGitHub 3 + , fetchpatch 3 4 , callPackage 4 5 , lib 5 6 , jmp ··· 17 18 rev = "refs/tags/v${version}"; 18 19 hash = "sha256-EZx3o6PgTeFjTwI9Ko9H39EqPSE0yLWWpsdqX6ALlo4="; 19 20 }; 21 + 22 + patches = [ 23 + # https://github.com/deepmind/dm-haiku/issues/717 24 + (fetchpatch { 25 + name = "remove-typing-extensions.patch"; 26 + url = "https://github.com/deepmind/dm-haiku/commit/c22867db1a3314a382bd2ce36511e2b756dc32a8.patch"; 27 + hash = "sha256-SxJc8FrImwMqTJ5OuJ1f4T+HfHgW/sGqXeIqlxEatlE="; 28 + }) 29 + # https://github.com/deepmind/dm-haiku/pull/672 30 + (fetchpatch { 31 + name = "fix-find-namespace-packages.patch"; 32 + url = "https://github.com/deepmind/dm-haiku/commit/728031721f77d9aaa260bba0eddd9200d107ba5d.patch"; 33 + hash = "sha256-qV94TdJnphlnpbq+B0G3KTx5CFGPno+8FvHyu/aZeQE="; 34 + }) 35 + ]; 20 36 21 37 outputs = [ 22 38 "out"