at 22.05-pre 983 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, pythonOlder 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "parso"; 11 version = "0.8.1"; 12 disabled = pythonOlder "3.6"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "8519430ad07087d4c997fda3a7918f7cfa27cb58972a8c89c2a0295a1c940e9e"; 17 }; 18 19 patches = [ 20 # Fix the flaky test due to slow moving time on Apple Silicon chips. 21 # Remove when https://github.com/davidhalter/parso/pull/177 is in the next release. 22 (fetchpatch { 23 url = "https://github.com/davidhalter/parso/pull/177/commits/2799a7a3c2cf87fdc2d0c19a0890acea425091ce.patch"; 24 sha256 = "sha256-A5EQly1wR/7lo+L8Pp0UPSUIhC0WcblXEWQNvRMlZYA="; 25 }) 26 ]; 27 28 checkInputs = [ pytestCheckHook ]; 29 30 meta = with lib; { 31 description = "A Python Parser"; 32 homepage = "https://parso.readthedocs.io/en/latest/"; 33 changelog = "https://github.com/davidhalter/parso/blob/master/CHANGELOG.rst"; 34 license = licenses.mit; 35 }; 36}