at 24.05-pre 775 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, pythonAtLeast 6, pythonOlder 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "parso"; 12 version = "0.8.3"; 13 disabled = pythonOlder "3.6"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-jAe+KQu1nwNYiRWSHinopQACrK8s3F+g4BFPkXCfr6A="; 18 }; 19 20 nativeCheckInputs = [ pytestCheckHook ]; 21 22 disabledTests = lib.optionals (pythonAtLeast "3.10") [ 23 # python changed exception message format in 3.10, 3.10 not yet supported 24 "test_python_exception_matches" 25 ]; 26 27 meta = with lib; { 28 description = "A Python Parser"; 29 homepage = "https://parso.readthedocs.io/en/latest/"; 30 changelog = "https://github.com/davidhalter/parso/blob/master/CHANGELOG.rst"; 31 license = licenses.mit; 32 }; 33}