2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-09-19 14:19:46 +00:00
|
|
|
fetchPypi,
|
2024-06-05 15:53:02 +00:00
|
|
|
cython,
|
|
|
|
pexpect,
|
|
|
|
python,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2022-10-30 15:09:59 +00:00
|
|
|
}:
|
2020-11-12 09:05:59 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cpyparsing";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.4.7.2.4.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-7j0vJicSrSUqZAExaH0bJZhRJ6XZui4SAPMBcWXy7n0=";
|
2020-11-12 09:05:59 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
2024-04-21 15:54:59 +00:00
|
|
|
setuptools
|
2023-05-24 13:37:59 +00:00
|
|
|
];
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pexpect ];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} tests/cPyparsing_test.py
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "cPyparsing" ];
|
2020-11-12 09:05:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cython PyParsing implementation";
|
2022-10-30 15:09:59 +00:00
|
|
|
homepage = "https://github.com/evhub/cpyparsing";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/evhub/cpyparsing/releases/tag/v${version}";
|
2020-11-12 09:05:59 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fabianhjr ];
|
|
|
|
};
|
|
|
|
}
|