Merge pull request #114257 from bobrik/ivan/slow-moving-parso

python3Packages.parso: fix flaky test due to slow moving time
This commit is contained in:
Sandro 2021-02-26 09:35:35 +01:00 committed by GitHub
commit b0ca5ad3b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, pythonOlder
, pytestCheckHook
}:
@ -15,6 +16,15 @@ buildPythonPackage rec {
sha256 = "2b6db14759c528d857eeb9eac559c2166b2554548af39f5198bdfb976f72aa64";
};
patches = [
# Fix the flaky test due to slow moving time on Apple Silicon chips.
# Remove when https://github.com/davidhalter/parso/pull/177 is in the next release.
(fetchpatch {
url = "https://github.com/davidhalter/parso/pull/177/commits/2799a7a3c2cf87fdc2d0c19a0890acea425091ce.patch";
sha256 = "sha256-A5EQly1wR/7lo+L8Pp0UPSUIhC0WcblXEWQNvRMlZYA=";
})
];
checkInputs = [ pytestCheckHook ];
meta = with lib; {