2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cython
|
|
|
|
, pexpect
|
|
|
|
, python
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2020-11-12 09:05:59 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cpyparsing";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.4.7.2.3.2";
|
2022-10-30 15:09:59 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-11-12 09:05:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "evhub";
|
|
|
|
repo = pname;
|
2022-10-30 15:09:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-vnzZdJ7pZz1QxlTqw5UKjxB4GVcXuCfKWX4lu3ORWas=";
|
2020-11-12 09:05:59 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
];
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2023-05-24 13:37:59 +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
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|