1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 cython, 6 pexpect, 7 python, 8 pythonOlder, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "cpyparsing"; 14 version = "2.4.7.2.4.1"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-2RfwGnSz/GFPk565n8MooIybHeWAlWYMDylZd0S/HTA="; 22 }; 23 24 nativeBuildInputs = [ 25 cython 26 setuptools 27 ]; 28 29 nativeCheckInputs = [ pexpect ]; 30 31 checkPhase = '' 32 ${python.interpreter} tests/cPyparsing_test.py 33 ''; 34 35 pythonImportsCheck = [ "cPyparsing" ]; 36 37 meta = with lib; { 38 description = "Cython PyParsing implementation"; 39 homepage = "https://github.com/evhub/cpyparsing"; 40 changelog = "https://github.com/evhub/cpyparsing/releases/tag/v${version}"; 41 license = licenses.asl20; 42 maintainers = with maintainers; [ fabianhjr ]; 43 }; 44}