2020-01-20 14:58:04 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
2017-07-12 11:30:46 +01:00
|
|
|
buildPythonPackage rec {
|
2020-01-20 14:58:04 +00:00
|
|
|
pname = "pyparsing";
|
2022-01-14 00:58:46 +00:00
|
|
|
version = "3.0.6";
|
2017-07-12 11:30:46 +01:00
|
|
|
|
2020-01-20 14:58:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyparsing";
|
|
|
|
repo = pname;
|
|
|
|
rev = "pyparsing_${version}";
|
2022-01-14 00:58:46 +00:00
|
|
|
sha256 = "0n89ky7rx5yg09ssji8liahnyxip08hz7syc2k4pmlgs4978181a";
|
2020-01-20 14:58:04 +00:00
|
|
|
};
|
2017-07-12 11:30:46 +01:00
|
|
|
|
2022-01-14 02:14:59 +00:00
|
|
|
# only do unit tests, as diagram tests require railroad, which has
|
|
|
|
# been unmaintained since 2015
|
2020-01-20 14:58:04 +00:00
|
|
|
checkPhase = ''
|
2022-01-14 02:14:59 +00:00
|
|
|
python -m unittest -k 'not testEmptyExpressionsAreHandledProperly' tests/test_unit.py
|
2020-01-20 14:58:04 +00:00
|
|
|
'';
|
2017-07-12 11:30:46 +01:00
|
|
|
|
2020-01-20 14:58:04 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/pyparsing/pyparsing";
|
|
|
|
description = "An alternative approach to creating and executing simple grammars, vs. the traditional lex/yacc approach, or the use of regular expressions";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
kamadorueda
|
|
|
|
];
|
|
|
|
};
|
2017-07-12 11:30:46 +01:00
|
|
|
}
|