Skip to content

Commit

Permalink
python312Packages.mypy: fix test with Python 3.12.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Oct 13, 2024
1 parent 48d0511 commit c00441e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkgs/development/python-modules/mypy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
stdenv,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
gitUpdater,
pythonAtLeast,
pythonOlder,
Expand Down Expand Up @@ -45,6 +46,15 @@ buildPythonPackage rec {
rev = "refs/tags/v${version}";
hash = "sha256-5gfqIBtI/G5HARYdXHjYNYNRxeNgrk9dnpSgvMSu9bw=";
};

patches = [
(fetchpatch2 {
name = "python3.12.7-compat.patch";
url = "https://github.com/python/mypy/commit/1a2c8e2a4df21532e4952191cad74ae50083f4ad.patch";
hash = "sha256-GBQPTkdoLeErjbRUjZBFEwvCcN/WzC3OYVvou6M+f80=";
})
];

passthru.updateScript = gitUpdater {
rev-prefix = "v";
};
Expand Down

0 comments on commit c00441e

Please sign in to comment.