about summary refs log tree commit diff
path: root/pkgs/development/python-modules/parso
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2022-01-04 22:47:07 -0800
committerJonathan Ringer <jonringer117@gmail.com>2022-01-04 22:47:07 -0800
commit58d0c2baf03cedfaff3e3300bc0f4364b96755e0 (patch)
tree0a169132eae9321926e55e18f1c99d7efc96f6e7 /pkgs/development/python-modules/parso
parent3709c129eff4a74f27c104cce7f75b76c0908469 (diff)
python310Packages.parso: 0.8.1 -> 0.8.3, disable 3.10 incompatible tests
Diffstat (limited to 'pkgs/development/python-modules/parso')
-rw-r--r--pkgs/development/python-modules/parso/default.nix19
1 files changed, 8 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/parso/default.nix b/pkgs/development/python-modules/parso/default.nix
index a68f535d29db1..16313ab16ee8b 100644
--- a/pkgs/development/python-modules/parso/default.nix
+++ b/pkgs/development/python-modules/parso/default.nix
@@ -2,31 +2,28 @@
 , buildPythonPackage
 , fetchPypi
 , fetchpatch
+, pythonAtLeast
 , pythonOlder
 , pytestCheckHook
 }:
 
 buildPythonPackage rec {
   pname = "parso";
-  version = "0.8.1";
+  version = "0.8.3";
   disabled = pythonOlder "3.6";
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "8519430ad07087d4c997fda3a7918f7cfa27cb58972a8c89c2a0295a1c940e9e";
+    sha256 = "sha256-jAe+KQu1nwNYiRWSHinopQACrK8s3F+g4BFPkXCfr6A=";
   };
 
-  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 ];
 
+  disabledTests = lib.optionals (pythonAtLeast "3.10") [
+    # python changed exception message format in 3.10, 3.10 not yet supported
+    "test_python_exception_matches"
+  ];
+
   meta = with lib; {
     description = "A Python Parser";
     homepage = "https://parso.readthedocs.io/en/latest/";