1{ lib 2, fetchPypi 3, buildPythonPackage 4, setuptools-scm 5, six 6, astroid 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "asttokens"; 12 version = "2.4.0"; 13 format = "pyproject"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-LgFxuZGyyVmsxsSTGASSNoRKXaHWW6JnLEiAwciUg04="; 18 }; 19 20 nativeBuildInputs = [ 21 setuptools-scm 22 ]; 23 24 propagatedBuildInputs = [ 25 six 26 ]; 27 28 nativeCheckInputs = [ 29 astroid 30 pytestCheckHook 31 ]; 32 33 disabledTests = [ 34 # Test is currently failing on Hydra, works locally 35 "test_slices" 36 ]; 37 38 disabledTestPaths = [ 39 # incompatible with astroid 2.11.0, pins <= 2.5.3 40 "tests/test_astroid.py" 41 ]; 42 43 pythonImportsCheck = [ "asttokens" ]; 44 45 meta = with lib; { 46 homepage = "https://github.com/gristlabs/asttokens"; 47 description = "Annotate Python AST trees with source text and token information"; 48 license = licenses.asl20; 49 maintainers = with maintainers; [ leenaars ]; 50 }; 51}