python311Packages.pyflakes: patch test

(cherry picked from commit d4f6cac30b)
This commit is contained in:
Vladimír Čunát
2023-06-15 22:41:59 +02:00
committed by Martin Weinelt
parent 68442f0998
commit 1937197ed3

View File

@@ -2,6 +2,7 @@
, buildPythonPackage
, pythonOlder
, fetchPypi
, fetchpatch, isPy311
, pytestCheckHook
}:
@@ -18,6 +19,14 @@ buildPythonPackage rec {
hash = "sha256-7IsnamtgvYDe/tJa3X5DmIHBnmSFCv2bNGKD1BZf0P0=";
};
patches = lib.optional isPy311 # could be made unconditional on rebuild
(fetchpatch {
name = "tests-py311.patch";
url = "https://github.com/PyCQA/pyflakes/commit/836631f2f73d45baa4021453d89fc9fd6f52be58.diff";
hash = "sha256-xlgql+bN0HsGnTMkwax3ZG/5wrbkUl/kQkjlr3lsgRw=";
})
;
nativeCheckInputs = [
pytestCheckHook
];