blob: 446eb26c2bc6f901f9427f773b5a97595a62627f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
lib,
buildPythonPackage,
fetchPypi,
cython,
pexpect,
python,
setuptools,
}:
buildPythonPackage rec {
pname = "cpyparsing";
version = "2.4.7.2.4.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-2RfwGnSz/GFPk565n8MooIybHeWAlWYMDylZd0S/HTA=";
};
nativeBuildInputs = [
cython
setuptools
];
nativeCheckInputs = [ pexpect ];
checkPhase = ''
${python.interpreter} tests/cPyparsing_test.py
'';
pythonImportsCheck = [ "cPyparsing" ];
meta = {
description = "Cython PyParsing implementation";
homepage = "https://github.com/evhub/cpyparsing";
changelog = "https://github.com/evhub/cpyparsing/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fabianhjr ];
};
}
|