2020-01-20 09:58:04 -05:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
2022-05-11 13:39:27 +02:00
|
|
|
, flit-core
|
2022-01-13 18:41:58 -08:00
|
|
|
, jinja2
|
2022-03-23 09:14:28 +01:00
|
|
|
, pytestCheckHook
|
2022-01-13 18:41:58 -08:00
|
|
|
, railroad-diagrams
|
2022-12-19 11:47:29 -03:00
|
|
|
, pyparsing
|
2022-01-13 18:41:58 -08:00
|
|
|
}:
|
2017-07-12 12:30:46 +02:00
|
|
|
|
2022-12-19 11:47:29 -03:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyparsing";
|
|
|
|
version = "3.0.9";
|
|
|
|
format = "pyproject";
|
2017-07-12 12:30:46 +02:00
|
|
|
|
2022-12-19 11:47:29 -03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyparsing";
|
|
|
|
repo = pname;
|
|
|
|
rev = "pyparsing_${version}";
|
|
|
|
sha256 = "sha256-aCRyJQyLf8qQ6NO41q+HC856TjIHzIt0vyVBLV+3teE=";
|
|
|
|
};
|
2017-07-12 12:30:46 +02:00
|
|
|
|
2022-12-19 11:47:29 -03:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
2022-05-11 13:39:27 +02:00
|
|
|
|
2022-12-19 11:47:29 -03:00
|
|
|
# circular dependencies with pytest if enabled by default
|
|
|
|
doCheck = false;
|
|
|
|
checkInputs = [
|
|
|
|
jinja2
|
|
|
|
pytestCheckHook
|
|
|
|
railroad-diagrams
|
|
|
|
];
|
2022-01-13 18:41:58 -08:00
|
|
|
|
2022-12-19 11:47:29 -03:00
|
|
|
pythonImportsCheck = [ "pyparsing" ];
|
2022-01-13 18:41:58 -08:00
|
|
|
|
2022-12-19 11:47:29 -03:00
|
|
|
passthru.tests = {
|
|
|
|
check = pyparsing.overridePythonAttrs (_: { doCheck = true; });
|
|
|
|
};
|
2022-01-13 18:41:58 -08:00
|
|
|
|
2022-12-19 11:47:29 -03:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/pyparsing/pyparsing";
|
|
|
|
description = "Python library for creating PEG parsers";
|
|
|
|
longDescription = ''
|
|
|
|
The pyparsing module is an alternative approach to creating and executing
|
|
|
|
simple grammars, vs. the traditional lex/yacc approach, or the use of
|
|
|
|
regular expressions. The pyparsing module provides a library of classes
|
|
|
|
that client code uses to construct the grammar directly in Python code.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kamadorueda ];
|
2020-01-20 09:58:04 -05:00
|
|
|
};
|
2022-12-19 11:47:29 -03:00
|
|
|
}
|