Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 22.05-pre 45 lines 824 B view raw
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.0.5"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "sha256-mlTBFPAsepSA1WVQkyVGo/H+cdigLxvHzNDuPuNc9NU="; 17 }; 18 19 nativeBuildInputs = [ 20 setuptools-scm 21 ]; 22 23 propagatedBuildInputs = [ 24 six 25 astroid 26 ]; 27 28 checkInputs = [ 29 pytestCheckHook 30 ]; 31 32 disabledTests = [ 33 # Test is currently failing on Hydra, works locally 34 "test_slices" 35 ]; 36 37 pythonImportsCheck = [ "asttokens" ]; 38 39 meta = with lib; { 40 homepage = "https://github.com/gristlabs/asttokens"; 41 description = "Annotate Python AST trees with source text and token information"; 42 license = licenses.asl20; 43 maintainers = with maintainers; [ leenaars ]; 44 }; 45}