1{ lib, buildPythonPackage, fetchFromGitHub, cython, pexpect, python }:
2
3buildPythonPackage rec {
4 pname = "cpyparsing";
5 version = "2.4.7.1.0.0";
6
7 src = fetchFromGitHub {
8 owner = "evhub";
9 repo = pname;
10 rev = "09073751d92cb40fb71c927c006baddc082df1db"; # No tags on repo
11 sha256 = "O9IdHipAxxbFcDFYNvmczue/wT4AF9Xb5uc3ZTAlTlo=";
12 };
13
14 nativeBuildInputs = [ cython ];
15
16 checkInputs = [ pexpect ];
17
18 checkPhase = "${python.interpreter} tests/cPyparsing_test.py";
19
20 meta = with lib; {
21 homepage = "https://github.com/evhub/cpyparsing";
22 description = "Cython PyParsing implementation";
23 license = licenses.asl20;
24 maintainers = with maintainers; [ fabianhjr ];
25 };
26}