1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, cython 5, pexpect 6, python 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "cpyparsing"; 12 version = "2.4.7.1.2.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "evhub"; 19 repo = pname; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-cb0Lx+S9WnPa9veHJaYEU7pFCtB6pG/GKf4HK/UbmtU="; 22 }; 23 24 nativeBuildInputs = [ cython ]; 25 26 checkInputs = [ pexpect ]; 27 28 checkPhase = '' 29 ${python.interpreter} tests/cPyparsing_test.py 30 ''; 31 32 pythonImportsCheck = [ 33 "cPyparsing" 34 ]; 35 36 meta = with lib; { 37 description = "Cython PyParsing implementation"; 38 homepage = "https://github.com/evhub/cpyparsing"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ fabianhjr ]; 41 }; 42}