2021-10-28 06:52:43 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, cython, pexpect, python }:
|
2020-11-12 09:05:59 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cpyparsing";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "2.4.7.1.1.0";
|
2020-11-12 09:05:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "evhub";
|
|
|
|
repo = pname;
|
2021-12-19 01:06:50 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1rqj89mb4dz0xk8djh506nrlqfqqdva9qgb5llrvvwjqv3vqnrj4";
|
2020-11-12 09:05:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
checkInputs = [ pexpect ];
|
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
checkPhase = "${python.interpreter} tests/cPyparsing_test.py";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/evhub/cpyparsing";
|
|
|
|
description = "Cython PyParsing implementation";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fabianhjr ];
|
|
|
|
};
|
|
|
|
}
|