blob: 0047a809861601c06b040719b97f1cc217bbc080 (
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
42
43
44
45
46
47
48
|
{
lib,
buildPythonPackage,
fetchPypi,
regex,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "parsimonious";
version = "0.10.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-goFgDaGA7IrjVCekq097gr/sHj0eUvgMtg6oK5USUBw=";
};
propagatedBuildInputs = [ regex ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# test_benchmarks.py tests are actually benchmarks and may fail due to
# something being unexpectedly slow on a heavily loaded build machine
"test_lists_vs_dicts"
"test_call_vs_inline"
"test_startswith_vs_regex"
];
postPatch = ''
substituteInPlace setup.py \
--replace "regex>=2022.3.15" "regex"
'';
pythonImportsCheck = [
"parsimonious"
"parsimonious.grammar"
"parsimonious.nodes"
];
meta = {
description = "Arbitrary-lookahead parser";
homepage = "https://github.com/erikrose/parsimonious";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|