159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
44 lines
863 B
Nix
44 lines
863 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
cython,
|
|
pexpect,
|
|
python,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cpyparsing";
|
|
version = "2.4.7.2.4.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-7j0vJicSrSUqZAExaH0bJZhRJ6XZui4SAPMBcWXy7n0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [ pexpect ];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} tests/cPyparsing_test.py
|
|
'';
|
|
|
|
pythonImportsCheck = [ "cPyparsing" ];
|
|
|
|
meta = with lib; {
|
|
description = "Cython PyParsing implementation";
|
|
homepage = "https://github.com/evhub/cpyparsing";
|
|
changelog = "https://github.com/evhub/cpyparsing/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fabianhjr ];
|
|
};
|
|
}
|