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-06 16:07:01 +00:00
|
|
|
version = "2.4.7.1.0.0";
|
2020-11-12 09:05:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "evhub";
|
|
|
|
repo = pname;
|
2021-12-06 16:07:01 +00:00
|
|
|
rev = "09073751d92cb40fb71c927c006baddc082df1db"; # No tags on repo
|
|
|
|
sha256 = "O9IdHipAxxbFcDFYNvmczue/wT4AF9Xb5uc3ZTAlTlo=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|