1{ buildPythonPackage 2, fetchFromGitHub 3, lib 4 5# pythonPackages 6, coverage 7}: 8 9buildPythonPackage rec { 10 pname = "pyparsing"; 11 version = "2.4.7"; 12 13 src = fetchFromGitHub { 14 owner = "pyparsing"; 15 repo = pname; 16 rev = "pyparsing_${version}"; 17 sha256 = "14pfy80q2flgzjcx8jkracvnxxnr59kjzp3kdm5nh232gk1v6g6h"; 18 }; 19 20 # https://github.com/pyparsing/pyparsing/blob/847af590154743bae61a32c3dc1a6c2a19009f42/tox.ini#L6 21 checkInputs = [ coverage ]; 22 checkPhase = '' 23 coverage run --branch simple_unit_tests.py 24 coverage run --branch unitTests.py 25 ''; 26 27 meta = with lib; { 28 homepage = "https://github.com/pyparsing/pyparsing"; 29 description = "An alternative approach to creating and executing simple grammars, vs. the traditional lex/yacc approach, or the use of regular expressions"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ 32 kamadorueda 33 ]; 34 }; 35}